File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Push Docker Image
2-
32on :
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
79jobs :
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
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 }}
You can’t perform that action at this time.
0 commit comments