From 03ab09bd2232d839e0b25bc28fa4abbaea7b792c Mon Sep 17 00:00:00 2001 From: Chris Done Date: Mon, 1 Sep 2025 14:07:13 +0100 Subject: [PATCH] Make a manual job --- .github/workflows/push.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 241d95c..b7a56d4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,23 +1,22 @@ name: Push Docker Image - on: - release: - types: [released] - + workflow_dispatch: + inputs: + release_name: + description: 'Release name/tag for the Docker image' + required: true + type: string jobs: docker: runs-on: ubuntu-latest permissions: contents: read packages: write - steps: - uses: actions/checkout@v4 - - uses: nixbuild/nix-quick-install-action@v28 with: nix_conf: experimental-features = nix-command flakes - # Log in to GHCR - name: Log in to GHCR uses: docker/login-action@v3 @@ -25,11 +24,9 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # Create a docker image - run: nix run .#packages.x86_64-linux.container.copyToDockerDaemon - - run: docker tag perfly:latest ghcr.io/artificialio/perfly:${{ github.event.release.tag_name }} - + - run: docker tag perfly:latest ghcr.io/artificialio/perfly:${{ inputs.release_name }} # Build and push the image - name: Build and Push Docker image uses: docker/build-push-action@v6 @@ -38,4 +35,4 @@ jobs: push: true tags: | ghcr.io/artificialio/perfly:latest - ghcr.io/artificialio/perfly:${{ github.event.release.tag_name }} + ghcr.io/artificialio/perfly:${{ inputs.release_name }}