From 32ced97a60e724e90ea5ec7af54a5ed39cdd640b Mon Sep 17 00:00:00 2001 From: mungai-njoroge Date: Fri, 13 Oct 2023 23:10:47 +0300 Subject: [PATCH] update workflow --- .github/workflows/release.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 000ebdb..30bf4f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -147,15 +147,6 @@ jobs: # list of Docker images to use as base name for tags images: | ghcr.io/${{ github.repository }} - # Docker tags based on the following events/attributes - tags: | - type=schedule - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - name: print directory run: | ls -R @@ -165,7 +156,7 @@ jobs: context: . platforms: linux/amd64,linux/arm push: true - tags: ghcr.io/${{github.repository}}:${{inputs.tag}} - labels: ${{ steps.meta.outputs.labels }} + tags: ghcr.io/${{github.repository}}:${{inputs.tag}}, ${{env.LATEST_TAG}} + labels: org.opencontainers.image.title=Docker Container env: - LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }} \ No newline at end of file + LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}