Skip to content

Commit

Permalink
fix: env
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
  • Loading branch information
drivebyer committed May 6, 2024
1 parent 4cac403 commit 7c70089
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Env
run: |
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build and Push Operator image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${GITHUB_REF#refs/tags/}
${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.TAG }}
${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest
platforms: linux/amd64,linux/arm64

0 comments on commit 7c70089

Please sign in to comment.