Skip to content

Commit

Permalink
Fix docker image metadata (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmeyers99 authored Dec 14, 2021
1 parent 83abe10 commit 419a477
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
types: [closed]
branches:
- master
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{github.repository}}

jobs:
github-release:
if: github.event.pull_request.merged == true && contains(toJSON(github.event.pull_request.labels.*.name), '"autorelease"')
Expand Down Expand Up @@ -53,9 +57,6 @@ jobs:
build-and-push-docker-image:
needs: github-release
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{github.repository}}
permissions:
contents: read
packages: write
Expand All @@ -64,6 +65,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Log in to the Container registry
uses: docker/[email protected]
with:
Expand All @@ -75,7 +80,7 @@ jobs:
id: meta
uses: docker/[email protected]
with:
images: ${{ env.IMAGE_NAME }},ghcr.io/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},value=${{needs.github-release.outputs.version }}
Expand Down

0 comments on commit 419a477

Please sign in to comment.