Skip to content

Commit f73e3d8

Browse files
authored
fix: fix release to push to latest (#91)
1 parent 257fbeb commit f73e3d8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
version:
1111
description: "release version, also creates a tag e.g. (0.1.0)"
1212
required: true
13-
13+
1414
permissions:
1515
actions: read
1616
checks: none
@@ -85,7 +85,7 @@ jobs:
8585
run: docker push ghcr.io/coder/envbox:${{ github.event.inputs.version }}-${{ matrix.arch-suffix }}
8686
manifest:
8787
runs-on: ubuntu-22.04
88-
needs: release
88+
needs: release
8989
steps:
9090
- name: Checkout
9191
uses: actions/checkout@v3
@@ -103,8 +103,14 @@ jobs:
103103
docker manifest create ghcr.io/coder/envbox:${{ github.event.inputs.version }} \
104104
--amend ghcr.io/coder/envbox:${{ github.event.inputs.version }}-amd64 \
105105
--amend ghcr.io/coder/envbox:${{ github.event.inputs.version }}-arm64
106+
docker manifest create ghcr.io/coder/envbox:latest \
107+
--amend ghcr.io/coder/envbox:${{ github.event.inputs.version }}-amd64 \
108+
--amend ghcr.io/coder/envbox:${{ github.event.inputs.version }}-arm64
109+
106110
- name: Push Manifest
107-
run: docker manifest push ghcr.io/coder/envbox:${{ github.event.inputs.version }}
111+
run: |
112+
docker manifest push ghcr.io/coder/envbox:${{ github.event.inputs.version }}
113+
docker manifest push ghcr.io/coder/envbox:latest
108114
109115
tag:
110116
runs-on: ubuntu-22.04
@@ -123,5 +129,3 @@ jobs:
123129
run: |
124130
git tag -a ${{ github.event.inputs.version }} -m ${{ github.event.inputs.version }}
125131
git push --tags
126-
127-

0 commit comments

Comments
 (0)