Skip to content

Commit 96c98eb

Browse files
committed
🔧 Enable dev container publishing on feature branch for testing
- Add devcontainer-updates branch to publishing trigger - Tag images with branch name for testing - Update integration workflow to use branch-tagged cache
1 parent 8e13260 commit 96c98eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/devcontainer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Dev Container
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, devcontainer-updates]
66
paths:
77
- '.devcontainer/**'
88
workflow_dispatch:
@@ -28,5 +28,6 @@ jobs:
2828
uses: devcontainers/[email protected]
2929
with:
3030
imageName: ghcr.io/roots/acorn-devcontainer
31+
imageTag: ${{ github.ref_name }}
3132
cacheFrom: ghcr.io/roots/acorn-devcontainer
3233
push: always

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: devcontainers/[email protected]
1717
with:
1818
configFile: .devcontainer/devcontainer.json
19-
cacheFrom: ghcr.io/roots/acorn-devcontainer
19+
cacheFrom: ghcr.io/roots/acorn-devcontainer:${{ github.ref_name }}
2020
push: never
2121
runCmd: |
2222
# Wait for database to be ready

0 commit comments

Comments
 (0)