From 7ad8ce18647e443b819d1e95a5ed1411b6fe0687 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 28 Jun 2024 14:49:19 +0200 Subject: [PATCH] Build docker image on push and release --- .github/workflows/docker.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 00000000..94d7fcf1 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,22 @@ +name: Docker build & push +on: + push: + release: + types: [published] +jobs: + build: + env: + REGISTRY: ghcr.io + IMAGENAME: ${{ github.event.repository.name }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + name: Check out code + - name: Docker build + uses: mr-smithers-excellent/docker-build-push@v5 + id: build + with: + image: ${{ env.IMAGENAME }} + registry: ${{ env.REGISTRY }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }}