Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Nov 24, 2022
1 parent 9e7663c commit 3cac630
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
image:
- name: telegraf
repo: influxdata/telegraf
suffix: "alpine"
suffix: "-alpine"
strategy: "check-upstream"

- name: backup
suffix: "alpine"
version: "latest"
strategy: "always"


Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
if: "${{ matrix.image.strategy == 'check-upstream' }}"
continue-on-error: true # We need to handle exit status
env:
TAG: "${{ steps.last_version.outputs.version }}-${{ matrix.image.suffix }}"
TAG: "${{ steps.last_version.outputs.version }}${{ matrix.image.suffix }}"
run: |
set +e
docker manifest inspect ghcr.io/${{ github.repository_owner }}/${{ matrix.image.name }}:${{ env.TAG }}
Expand All @@ -59,7 +59,7 @@ jobs:
if: ${{ matrix.image.strategy == 'always' || steps.exists.outputs.code != 0 }}
uses: macbre/push-to-ghcr@master
env:
TAG: "${{ steps.last_version.outputs.version }}-${{ matrix.image.suffix }}"
TAG: "${{ matrix.image.strategy == 'always' ? matrix.image.version : steps.last_version.outputs.version }}${{ matrix.image.suffix }}"
with:
image_name: ${{ github.repository_owner }}/${{ matrix.image.name }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3cac630

Please sign in to comment.