Skip to content

Commit b9cf6c4

Browse files
authored
[docker] Added steps for latest tag for devbox & devbox-root (#2146)
## Summary TSIA ## How was it tested? tested via github action https://github.com/jetify-com/devbox/actions/runs/9507160567/job/26205993393
1 parent d9c9f17 commit b9cf6c4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/docker-image-release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,39 @@ jobs:
6767
push: true
6868
platforms: linux/amd64,linux/arm64
6969
tags: ${{ steps.metaroot.outputs.tags }}
70+
- name: Docker meta latest
71+
id: metalatest
72+
uses: docker/metadata-action@v5
73+
with:
74+
images: |
75+
jetpackio/devbox
76+
tags: |
77+
type=raw,value=latest
78+
flavor: |
79+
latest=true
80+
- name: Build and push latest
81+
uses: docker/build-push-action@v5
82+
with:
83+
context: ./internal/devbox/generate/tmpl/
84+
file: ./internal/devbox/generate/tmpl/DevboxImageDockerfile
85+
push: true
86+
platforms: linux/amd64,linux/arm64
87+
tags: ${{ steps.metalatest.outputs.tags }}
88+
- name: Docker meta root latest
89+
id: metarootlatest
90+
uses: docker/metadata-action@v5
91+
with:
92+
images: |
93+
jetpackio/devbox-root-user
94+
tags: |
95+
type=raw,value=latest
96+
flavor: |
97+
latest=true
98+
- name: Build and push root user latest
99+
uses: docker/build-push-action@v5
100+
with:
101+
context: ./internal/devbox/generate/tmpl/
102+
file: ./internal/devbox/generate/tmpl/DevboxImageDockerfileRootUser
103+
push: true
104+
platforms: linux/amd64,linux/arm64
105+
tags: ${{ steps.metarootlatest.outputs.tags }}

0 commit comments

Comments
 (0)