Skip to content

Commit

Permalink
Merge pull request #98 from kloeckner-i/METAL-3173/fix_docker_publish
Browse files Browse the repository at this point in the history
METAL-3173/publish docker image when release is published or edited
  • Loading branch information
hyunysmile committed Dec 7, 2021
2 parents 90c7c49 + 6718d9d commit e9f4d36
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
File renamed without changes.
28 changes: 28 additions & 0 deletions .github/workflows/image-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Docker image

on:
release:
types: [published, edited]

jobs:
build_and_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/kloeckner-i/db-operator:${{ github.event.release.tag_name }}

0 comments on commit e9f4d36

Please sign in to comment.