update workflow

This commit is contained in:
mungai-njoroge 2023-10-13 16:49:55 +03:00
parent bc55bf4ef7
commit fc25e6a3a4

View File

@ -139,22 +139,22 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# - name: Docker meta
# id: meta # you'll use this in the next step
# uses: docker/metadata-action@v3
# with:
# # 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: Docker meta
id: meta # you'll use this in the next step
uses: docker/metadata-action@v3
with:
# 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: Build and push
uses: docker/build-push-action@v2
@ -162,5 +162,5 @@ jobs:
context: .
platforms: linux/amd64,linux/arm
push: true
tags: swing-opensource/swingmusic:${{ inputs.tag }}
# labels: ${{ steps.meta.outputs.labels }}w
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}w