Skip to content

Commit

Permalink
go production!
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jan 29, 2021
1 parent 68acc4b commit d5f89e6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '*'

jobs:
multi-registries:
gcr-dockerhub-tag-triggered:
runs-on: ubuntu-latest
steps:
-
Expand All @@ -31,10 +31,15 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
-
name: Show Runners environment (debug)
shell: bash
run: export
-
name: Identify GitHub tag name
run: |
export
shell: bash
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
id: identify_tag
-
name: Build and Push to GCR and Docker Hub
uses: docker/build-push-action@v2
Expand All @@ -44,5 +49,7 @@ jobs:
platforms: linux/amd64
push: true
tags: |
${{ github.repository }}:test
${{ github.repository }}:latest
${{ github.repository }}:${{ steps.identify_tag.outputs.tag }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.identify_tag.outputs.tag }}

0 comments on commit d5f89e6

Please sign in to comment.