Fix tags for Docker Build

This commit is contained in:
2021-12-18 13:07:53 +00:00
parent fac6dacc47
commit 6d212d488f

View File

@@ -17,6 +17,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v1 uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
@@ -27,5 +28,5 @@ jobs:
with: with:
push: true push: true
tags: | tags: |
ghcr.io/${{ github.repository_owner }}/aaisp-exporter:${{ github.ref_name }} ghcr.io/${{ github.repository_owner }}/hg612-exporter:${{ github.ref_name }}
ghcr.io/${{ github.repository_owner }}/aaisp-exporter:latest ghcr.io/${{ github.repository_owner }}/hg612-exporter:latest