Skip to content

Commit

Permalink
Make workflow runs dispatchable manually
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Oct 3, 2021
1 parent bc7e8b6 commit 7da783e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-manual.yml
@@ -0,0 +1,34 @@
name: Push to GHCR (Manual)

on:
workflow_dispatch:
inputs:
tag:
required: true
description: "Build specific tag"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.tag }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v1
- name: Login to registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.event.inputs.tag }}
1 change: 1 addition & 0 deletions .github/workflows/goreleaser.yml
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
goreleaser:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Expand Up @@ -2,6 +2,7 @@ name: Run tests

on:
pull_request:
workflow_dispatch:

jobs:
lint:
Expand Down

0 comments on commit 7da783e

Please sign in to comment.