Skip to content

Commit

Permalink
try fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbund committed Dec 9, 2023
1 parent 7111723 commit 6cc1c04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- id: set-matrix
run: |
echo "matrix=$(find images -type f -name 'Dockerfile.*' | awk -F'.' '{print $2}')" >> $GITHUB_OUTPUT
echo "matrix=$(find images -type f -name 'Dockerfile.*' | awk -F'.' '{print $2}' | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
push-ghcr:
name: Build and push image
Expand Down Expand Up @@ -44,12 +44,12 @@ jobs:
- name: Build image
run: |
docker build \
--tag ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}-${{ steps.vars.outputs.date }} \
--tag ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}-latest \
--tag ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}:${{ steps.vars.outputs.date }} \
--tag ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}:latest \
--file images/Dockerfile.${{ matrix.chal }} \
images
- name: Push to ghcr
run: |
docker push ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}-${{ steps.vars.outputs.date }}
docker push ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}-latest
docker push ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}:${{ steps.vars.outputs.date }}
docker push ghcr.io/${{ github.repository_owner }}/tag-:${{ matrix.chal }}:latest
8 changes: 4 additions & 4 deletions .github/workflows/build-observer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
- name: Build image
run: |
docker build \
--tag ghcr.io/${{ github.repository_owner }}/tag-observer-${{ steps.vars.outputs.date }} \
--tag ghcr.io/${{ github.repository_owner }}/tag-observer-latest \
--tag ghcr.io/${{ github.repository_owner }}/tag-observer:${{ steps.vars.outputs.date }} \
--tag ghcr.io/${{ github.repository_owner }}/tag-observer:latest \
observer
- name: Push to ghcr
run: |
docker push ghcr.io/${{ github.repository_owner }}/tag-observer-${{ steps.vars.outputs.date }}
docker push ghcr.io/${{ github.repository_owner }}/tag-observer-latest
docker push ghcr.io/${{ github.repository_owner }}/tag-observer:${{ steps.vars.outputs.date }}
docker push ghcr.io/${{ github.repository_owner }}/tag-observer:latest

0 comments on commit 6cc1c04

Please sign in to comment.