Add gitea workflow
This commit is contained in:
58
.gitea/workflows/fail-docker.yaml
Normal file
58
.gitea/workflows/fail-docker.yaml
Normal file
@ -0,0 +1,58 @@
|
||||
name: Build FAIL* Docker Images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [disabled]
|
||||
# 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
|
||||
6
Makefile
6
Makefile
@ -1,7 +1,7 @@
|
||||
docker:
|
||||
docker build -t fail-base -f fail-base.dockerfile . --build-arg CACHE_DATE="$(shell date)"
|
||||
docker build -t fail-generic-tracing -f fail-generic-tracing.dockerfile .
|
||||
docker build -t fail-demo -f fail-demo.dockerfile . --build-arg CACHE_DATE="$(shell date)"
|
||||
docker build -t gitea.vps.chriphost.de/christoph/fail-base:latest -f fail-base.dockerfile . --build-arg CACHE_DATE="$(shell date)"
|
||||
docker build -t gitea.vps.chriphost.de/christoph/fail-generic-tracing:latest -f fail-generic-tracing.dockerfile .
|
||||
docker build -t gitea.vps.chriphost.de/christoph/fail-demo:latest -f fail-demo.dockerfile . --build-arg CACHE_DATE="$(shell date)"
|
||||
|
||||
run:
|
||||
docker compose up -d --force-recreate --renew-anon-volumes -y
|
||||
|
||||
@ -13,7 +13,7 @@ services:
|
||||
- fail-network
|
||||
|
||||
fail-demo:
|
||||
image: fail-demo
|
||||
image: gitea.vps.chriphost.de/christoph/fail-demo:latest
|
||||
container_name: fail-demo
|
||||
ports:
|
||||
- "5000:5000" # Result Browser
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
# generic-tracing experiment was already built and the binaries are in
|
||||
# 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>"
|
||||
|
||||
@ -130,6 +130,7 @@ RUN apt-get update \
|
||||
# python2-mysqldb \
|
||||
# python2-yaml \
|
||||
unzip \
|
||||
bochs \
|
||||
&& apt-get clean
|
||||
|
||||
# Fix old shebangs
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Inherit from docker container that has the fail source code prepared,
|
||||
# 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>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user