Skip to content

Commit

Permalink
reintroduce dynamics, and push
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Feb 22, 2021
1 parent 14afcd4 commit fb7c789
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/docker-tag-triggered-prod.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: docker-tag-triggered-prod

on:
workflow_dispatch:
inputs:
tags:
description: 'Enter tag name for test/dev image'
default: 'test'
push:
tags:
- '*'

jobs:
gcr-dockerhub-build-publish:
Expand Down Expand Up @@ -51,5 +49,17 @@ jobs:
run: |
docker build \
--tag ${{ github.repository }}:latest \
--tag ${{ github.repository }}:${{ steps.identify_tag.outputs.tag }} \
--tag ghcr.io/${{ github.repository }}:latest \
.
--tag ghcr.io/${{ github.repository }}:${{ steps.identify_tag.outputs.tag }} \
.
- name: Push Docker image to Docker Hub
run: |
docker push \
${{ github.repository }}:latest \
${{ github.repository }}:${{ steps.identify_tag.outputs.tag }}
- name: Push Docker image to GitHub Container Registry (GHCR)
run: |
docker push \
ghcr.io/${{ github.repository }}:latest \
ghcr.io/${{ github.repository }}:${{ steps.identify_tag.outputs.tag }}

0 comments on commit fb7c789

Please sign in to comment.