Skip to content

Commit 03ab09b

Browse files
Make a manual job
1 parent 4794134 commit 03ab09b

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/push.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
11
name: Push Docker Image
2-
32
on:
4-
release:
5-
types: [released]
6-
3+
workflow_dispatch:
4+
inputs:
5+
release_name:
6+
description: 'Release name/tag for the Docker image'
7+
required: true
8+
type: string
79
jobs:
810
docker:
911
runs-on: ubuntu-latest
1012
permissions:
1113
contents: read
1214
packages: write
13-
1415
steps:
1516
- uses: actions/checkout@v4
16-
1717
- uses: nixbuild/nix-quick-install-action@v28
1818
with:
1919
nix_conf: experimental-features = nix-command flakes
20-
2120
# Log in to GHCR
2221
- name: Log in to GHCR
2322
uses: docker/login-action@v3
2423
with:
2524
registry: ghcr.io
2625
username: ${{ github.actor }}
2726
password: ${{ secrets.GITHUB_TOKEN }}
28-
2927
# Create a docker image
3028
- run: nix run .#packages.x86_64-linux.container.copyToDockerDaemon
31-
- run: docker tag perfly:latest ghcr.io/artificialio/perfly:${{ github.event.release.tag_name }}
32-
29+
- run: docker tag perfly:latest ghcr.io/artificialio/perfly:${{ inputs.release_name }}
3330
# Build and push the image
3431
- name: Build and Push Docker image
3532
uses: docker/build-push-action@v6
@@ -38,4 +35,4 @@ jobs:
3835
push: true
3936
tags: |
4037
ghcr.io/artificialio/perfly:latest
41-
ghcr.io/artificialio/perfly:${{ github.event.release.tag_name }}
38+
ghcr.io/artificialio/perfly:${{ inputs.release_name }}

0 commit comments

Comments
 (0)