diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0d4ca7b..275193f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,6 +3,7 @@ on: push: branches: - master + - tickets/* pull_request: env: @@ -17,6 +18,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ github.repository }} + tags: | + type=raw,value=latest,enable=${{ github.ref_name == 'master' }} + type=raw,value=merge,enable=${{ github.ref_name != 'master' }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -32,6 +41,6 @@ jobs: with: platforms: linux/amd64,linux/arm64 push: true - tags: ghcr.io/${{ github.repository }}:${{ [github.ref_name = "master"] && echo "latest" ||echo "merge" }} + tags: ${{ steps.meta.outputs.tags }} build-args: JSWARM_UID=48435,JSWARM_GID=202 labels: runnumber=${{ GITHUB_RUN_ID }}