Skip to content

Commit

Permalink
resolve linter issue
Browse files Browse the repository at this point in the history
- don't use github.ref directly in a shell script
  • Loading branch information
mauwii committed Sep 16, 2023
1 parent b375981 commit b3e3a43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
--build-arg FROM_FLAVOR='${{ matrix.from-flavor }}'
--build-arg DISTRO='${{ matrix.distro }}'
--build-arg CODENAME='${{ matrix.codename }}'
${{ github.ref == 'refs/heads/main' && '--push' || format('--output type=docker,dest={0}', env.PATH_TO_IMAGE) }}
${{ fromJson(env.IS_MAIN) && '--push' || format('--output type=docker,dest={0}', env.PATH_TO_IMAGE) }}
--label org.opencontainers.image.authors='${{ env.REPOSITORY_LINK }}, ${{ github.actor }}'
--label org.opencontainers.image.description='${{ github.event.repository.description }}'
--label org.opencontainers.image.documentation='${{ env.REPOSITORY_LINK }}'
Expand All @@ -183,6 +183,7 @@ jobs:
--label org.opencontainers.image.vendor='${{ github.repository_owner }}'
.
env:
IS_MAIN: ${{ github.ref == 'refs/heads/main' }}
REGISTRY_IMAGE: ${{ format('{0}/{1}', env.REGISTRY, env.IMAGE_REPOSITORY) }}
REPOSITORY_LINK: https://github.com/${{ github.repository }}

Expand Down

0 comments on commit b3e3a43

Please sign in to comment.