Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Update on-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 authored Nov 2, 2021
1 parent 8659251 commit 5f18d85
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,31 @@ jobs:

- name: Update 'version' file
run: echo "${{ github.event.release.tag_name }}" > version

- name: Build docker image

# Buildx Needs QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

# We use Buildx so we can take advantage of the caching
- 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.repository_owner }}
password: ${{ github.token }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
tags: gcr.io/gubernator:${{ github.event.release.tag_name }},gcr.io/gubernator:latest
tags: |
ghcr.io/mailgun/gubernator:${{ github.event.release.tag_name }}
ghcr.io/mailgun/gubernator:latest
build-args: |
VERSION=${{ github.event.release.tag_name }}
push: true
secrets: GIT_AUTH_TOKEN=${{ github.token }}
push: true

#- name: Commit changes
# uses: EndBug/add-and-commit@v7
Expand Down

0 comments on commit 5f18d85

Please sign in to comment.