forked from kamba4/sunders
fix: Enables image pushing for any git branch push
All checks were successful
Build (and tag) Images / build (push) Successful in 35s
All checks were successful
Build (and tag) Images / build (push) Successful in 35s
This commit is contained in:
parent
3aeb91101d
commit
1e6f858426
1 changed files with 7 additions and 6 deletions
|
@ -32,20 +32,21 @@ jobs:
|
||||||
echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
|
echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build images
|
- name: Build web image
|
||||||
run: |
|
run: |
|
||||||
pushd ./web
|
|
||||||
docker build -f ./Containerfile -t git.hamburg.ccc.de/ccchh/sunders/web:${{ steps.vars.outputs.tag }} .
|
docker build -f ./Containerfile -t git.hamburg.ccc.de/ccchh/sunders/web:${{ steps.vars.outputs.tag }} .
|
||||||
popd
|
working-directory: ./web
|
||||||
pushd ./data_handler
|
|
||||||
|
- name: Build data_handler image
|
||||||
|
run: |
|
||||||
docker build -f ./Containerfile -t git.hamburg.ccc.de/ccchh/sunders/data_handler:${{ steps.vars.outputs.tag }} .
|
docker build -f ./Containerfile -t git.hamburg.ccc.de/ccchh/sunders/data_handler:${{ steps.vars.outputs.tag }} .
|
||||||
popd
|
working-directory: ./data_handler
|
||||||
|
|
||||||
- name: Push images to Container Registry
|
- name: Push images to Container Registry
|
||||||
run: |
|
run: |
|
||||||
docker push git.hamburg.ccc.de/ccchh/sunders/web:${{ steps.vars.outputs.tag }}
|
docker push git.hamburg.ccc.de/ccchh/sunders/web:${{ steps.vars.outputs.tag }}
|
||||||
docker push git.hamburg.ccc.de/ccchh/sunders/data_handler:${{ steps.vars.outputs.tag }}
|
docker push git.hamburg.ccc.de/ccchh/sunders/data_handler:${{ steps.vars.outputs.tag }}
|
||||||
if: github.event_name == 'push' && github.ref_name == 'main'
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
- name: Update docker-compose.yml image tags
|
- name: Update docker-compose.yml image tags
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue