ci(deploy): push latest tag to GHCR alongside commit SHA tag
This commit is contained in:
parent
000f20eab7
commit
8e72961f1a
1 changed files with 4 additions and 0 deletions
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
|
|
@ -88,9 +88,13 @@ jobs:
|
|||
run: |
|
||||
docker load < result
|
||||
version=$(cat Cargo.toml | nix run nixpkgs#tomlq -- -r .package.version)
|
||||
|
||||
docker tag "brewlog:${version}" "ghcr.io/jnsgruk/brewlog:$(git rev-parse --short HEAD)"
|
||||
docker push "ghcr.io/jnsgruk/brewlog:$(git rev-parse --short HEAD)"
|
||||
|
||||
docker tag "brewlog:${version}" "ghcr.io/jnsgruk/brewlog:latest"
|
||||
docker push "ghcr.io/jnsgruk/brewlog:latest"
|
||||
|
||||
- name: Deploy site
|
||||
run: |
|
||||
nix run nixpkgs#flyctl -- deploy -i "ghcr.io/jnsgruk/brewlog:$(git rev-parse --short HEAD)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue