Set up the CI image during the CI workflow

This commit is contained in:
Aaron Fenyes 2025-03-26 01:14:58 -07:00
parent 71f4cd184c
commit 5f45c9c7a4

View file

@ -3,11 +3,21 @@ on:
push:
branches: [main]
jobs:
# build and tag the Docker image that the rest of the jobs will run on
setup-image:
runs-on: self-hosted
defaults:
run:
working-directory: tools/ci-image
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- run: docker build . --tag dyna3:ci
# build the application, reporting success if there are no errors or warnings
build:
runs-on: docker
container:
image: dyna3:ci
needs: [setup-image]
defaults:
run:
working-directory: app-proto
@ -21,6 +31,7 @@ jobs:
runs-on: docker
container:
image: dyna3:ci
needs: [setup-image]
defaults:
run:
working-directory: app-proto
@ -38,6 +49,7 @@ jobs:
runs-on: docker
container:
image: dyna3:ci
needs: [setup-image]
defaults:
run:
working-directory: app-proto