Skip to content

Commit

Permalink
switch filename for workflow, add in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jan 30, 2021
1 parent fb1808a commit f96c5e9
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/docker-manual-triggered-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: docker-manual-triggered-test

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

jobs:
gcr-dockerhub-build-publish:
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 DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
-
name: Show Runners environment (debug)
shell: bash
run: export
-
name: Build and Push to GCR and Docker Hub
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ github.repository }}:${{ github.event.inputs.tags }}
ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}
File renamed without changes.

0 comments on commit f96c5e9

Please sign in to comment.