Set up the CI image during the CI workflow
This commit is contained in:
parent
71f4cd184c
commit
5f45c9c7a4
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue