Skip to content

Commit

Permalink
ci: fix deployment workflow to use correct version for OCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Jan 12, 2024
1 parent a0412e5 commit 5e0ce99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
- name: Upload container to ghcr.io
run: |
docker load < result
docker tag "jnsgruk/jnsgr.uk:$GITHUB_SHA" "ghcr.io/jnsgruk/jnsgr.uk:$GITHUB_SHA"
docker push "ghcr.io/jnsgruk/jnsgr.uk:$GITHUB_SHA"
docker tag "jnsgruk/jnsgr.uk:$(git rev-parse --short HEAD)" "ghcr.io/jnsgruk/jnsgr.uk:$(git rev-parse --short HEAD)"
docker push "ghcr.io/jnsgruk/jnsgr.uk:$(git rev-parse --short HEAD)"
- name: Deploy site
run: |
nix run nixpkgs#flyctl -- deploy -i "ghcr.io/jnsgruk/jnsgr.uk:$GITHUB_SHA"
nix run nixpkgs#flyctl -- deploy -i "ghcr.io/jnsgruk/jnsgr.uk:$(git rev-parse --short HEAD)"
env:
FLY_ACCESS_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 5e0ce99

Please sign in to comment.