8000 ci: support manual dispatch for ci by igboyes · Pull Request #3119 · virtool/virtool · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ci: support manual dispatch for ci #3119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- "main"

workflow_dispatch:

env:
IMAGE_NAME: virtool/virtool
REGISTRY: ghcr.io
Expand Down Expand Up @@ -163,6 +165,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
- name: Checkout Tag
if: steps.semantic.outputs.gitTag != ''
run: git checkout ${{ steps.semantic.outputs.gitTag }}
- name: Login to Registry
if: steps.semantic.outputs.gitTag != ''
Expand All @@ -172,11 +175,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker Metadata
if: steps.semantic.outputs.gitTag != ''
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
- name: Build and Push
if: steps.semantic.outputs.gitTag != ''
id: push
uses: docker/build-push-action@v5
with:
Expand All @@ -187,4 +192,5 @@ jobs:

# Trigger a Cloudflare hook that rebuilds and deploys our docs.
- name: Trigger Cloudflare Hook
if: steps.semantic.outputs.gitTag != ''
run: curl -X POST ${{ secrets.CLOUDFLARE_HOOK }}
Loading
0