Add gitea workflow
This commit is contained in:
57
.gitea/workflows/fail-docker.yaml
Normal file
57
.gitea/workflows/fail-docker.yaml
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
name: Build FAIL* Docker Images
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
# paths:
|
||||||
|
# - ".gitea/workflows/fail-docker.yaml"
|
||||||
|
# - "fail-base.dockerfile"
|
||||||
|
# - "fail-demo.dockerfile"
|
||||||
|
# - "fail-generic-tracing.dockerfile"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
fail-base-docker:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Login to container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.vps.chriphost.de
|
||||||
|
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||||
|
- name: Build FAIL* Base Docker Image
|
||||||
|
run: docker build --file fail-base.dockerfile --tag gitea.vps.chriphost.de/christoph/fail-base:latest .
|
||||||
|
- name: Push FAIL* Base Docker Image
|
||||||
|
run: docker push gitea.vps.chriphost.de/christoph/fail-base:latest
|
||||||
|
fail-generic-tracing-docker:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Login to container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.vps.chriphost.de
|
||||||
|
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||||
|
- name: Build FAIL* Generic Tracing Docker Image
|
||||||
|
run: docker build --file fail-generic-tracing.dockerfile --tag gitea.vps.chriphost.de/christoph/fail-generic-tracing:latest .
|
||||||
|
- name: Push FAIL* Generic Tracing Docker Image
|
||||||
|
run: docker push gitea.vps.chriphost.de/christoph/fail-generic-tracing:latest
|
||||||
|
fail-demo-docker:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Login to container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.vps.chriphost.de
|
||||||
|
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||||
|
- name: Build FAIL* Demo Docker Image
|
||||||
|
run: docker build --file fail-demo.dockerfile --tag gitea.vps.chriphost.de/christoph/fail-demo:latest .
|
||||||
|
- name: Push FAIL* Demo Docker Image
|
||||||
|
run: docker push gitea.vps.chriphost.de/christoph/fail-demo:latest
|
||||||
@ -3,7 +3,7 @@
|
|||||||
# generic-tracing experiment was already built and the binaries are in
|
# generic-tracing experiment was already built and the binaries are in
|
||||||
# place (~fail/bin/*)
|
# place (~fail/bin/*)
|
||||||
|
|
||||||
FROM fail-generic-tracing
|
FROM gitea.vps.chriphost.de/christoph/fail-generic-tracing:latest
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Christian Dietrich <stettberger@dokucode.de>"
|
LABEL org.opencontainers.image.authors="Christian Dietrich <stettberger@dokucode.de>"
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Inherit from docker container that has the fail source code prepared,
|
# Inherit from docker container that has the fail source code prepared,
|
||||||
# including all tools which are needed to build FAIL*
|
# including all tools which are needed to build FAIL*
|
||||||
FROM fail-base
|
FROM gitea.vps.chriphost.de/christoph/fail-base:latest
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Christian Dietrich <stettberger@dokucode.de>"
|
LABEL org.opencontainers.image.authors="Christian Dietrich <stettberger@dokucode.de>"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user