Skip to content

Commit d30c48b

Browse files
authored
Replace devcontainers/ci@v0.3 with devcontainer build --push to avoid OCI export and skopeo auth errors (#7)
1 parent bf2d8e5 commit d30c48b

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/cd-images.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,23 @@ jobs:
6464
steps:
6565
- uses: actions/checkout@v4
6666

67-
- name: Set up Docker Buildx
68-
uses: docker/setup-buildx-action@v3
69-
7067
- name: Log in to GHCR
7168
uses: docker/login-action@v3
7269
with:
7370
registry: ghcr.io
7471
username: ${{ github.actor }}
7572
password: ${{ secrets.GITHUB_TOKEN }}
7673

74+
- name: Install devcontainer CLI
75+
run: npm install -g @devcontainers/cli
76+
7777
- name: Build and push
78-
uses: devcontainers/ci@v0.3
79-
with:
80-
subFolder: images/${{ needs.prepare.outputs.name }}
81-
imageName: ${{ needs.prepare.outputs.image }}
82-
imageTag: ${{ matrix.suffix }}
83-
platform: ${{ matrix.platform }}
84-
push: always
78+
run: |
79+
devcontainer build \
80+
--workspace-folder images/${{ needs.prepare.outputs.name }} \
81+
--image-name ${{ needs.prepare.outputs.image }}:${{ matrix.suffix }} \
82+
--platform ${{ matrix.platform }} \
83+
--push
8584
8685
manifest:
8786
needs: [prepare, build]

0 commit comments

Comments
 (0)