-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Cleans up GHA Workflow & Fixes Container Image Copy for Digest
- Removes GHA steps that are not needed. - Fixes the generated image container copy to pull the the correct source. - Lists the tagged images stored in the container-storage during test builds.
- Loading branch information
Showing
2 changed files
with
10 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,25 +70,18 @@ jobs: | |
password: ${{ secrets.GITHUB_TOKEN }} | ||
logout: false | ||
|
||
# https://github.com/marketplace/actions/docker-metadata-action | ||
- name: Docker Metadata | ||
uses: docker/metadata-action@v5 | ||
id: metadata | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PACKAGE }} | ||
tags: type=raw,value=php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }} | ||
flavor: suffix=-${{ matrix.platform }} | ||
|
||
# https://github.com/marketplace/actions/setup-node-js-environment | ||
- name: Setup Node Environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
# https://github.com/marketplace/actions/dev-container-build-and-run-action | ||
- name: Pre-build dev container image | ||
- name: Pre-build Dev Container Image | ||
uses: devcontainers/[email protected] | ||
env: | ||
# see: https://github.com/devcontainers/ci/issues/191#issuecomment-1603857155 | ||
BUILDX_NO_DEFAULT_ATTESTATIONS: true | ||
PHP_VERSION: ${{ matrix.PHP_VERSION }} | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,24 +62,18 @@ jobs: | |
password: ${{ secrets.GITHUB_TOKEN }} | ||
logout: false | ||
|
||
# https://github.com/marketplace/actions/docker-metadata-action | ||
- uses: docker/metadata-action@v5 | ||
id: metadata | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PACKAGE }} | ||
tags: type=raw,value=php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }} | ||
flavor: suffix=-${{ matrix.platform }} | ||
|
||
# https://github.com/marketplace/actions/setup-node-js-environment | ||
- name: Setup Node Environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
# https://github.com/marketplace/actions/dev-container-build-and-run-action | ||
- name: Pre-build dev container image | ||
- name: Pre-build Dev Container Image | ||
uses: devcontainers/[email protected] | ||
env: | ||
# see: https://github.com/devcontainers/ci/issues/191#issuecomment-1603857155 | ||
BUILDX_NO_DEFAULT_ATTESTATIONS: true | ||
PHP_VERSION: ${{ matrix.PHP_VERSION }} | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
with: | ||
|
@@ -90,3 +84,7 @@ jobs: | |
push: never | ||
skipContainerUserIdUpdate: true | ||
|
||
- name: List Containers in Storage | ||
run: | | ||
skopeo list-tags containers-storage:${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PACKAGE }} | ||