Skip to content

Commit 9790a4c

Browse files
committed
Integrate Depot CLI setup and update Docker build action in GitHub workflow
- Added step to set up Depot CLI in the Docker build and publish workflow. - Replaced Docker build-push-action with Depot's version for improved integration. - Removed unnecessary QEMU and Buildx setup steps.
1 parent 7b92a9f commit 9790a4c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/service_docker-build-and-publish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ jobs:
9393
- name: Move PHP Versions file
9494
run: mv ./artifacts/php-versions.yml ${{ inputs.php-versions-file }}
9595

96+
- name: Set up Depot CLI
97+
uses: depot/setup-action@v1
98+
9699
##
97100
# Docker build & publish
98101
##
@@ -111,12 +114,6 @@ jobs:
111114
username: ${{ github.actor }}
112115
password: ${{ secrets.GITHUB_TOKEN }}
113116

114-
- name: Set up QEMU
115-
uses: docker/setup-qemu-action@v3
116-
117-
- name: Set up Docker Buildx
118-
uses: docker/setup-buildx-action@v3
119-
120117
- name: "📦 Assemble the Docker Tags"
121118
run: |
122119
chmod +x ./scripts/assemble-docker-tags.sh
@@ -167,11 +164,11 @@ jobs:
167164
echo "nginx_arg=NGINX_VERSION=$VERSION" >> $GITHUB_OUTPUT
168165
169166
- name: Build images
170-
uses: docker/build-push-action@v6
167+
uses: depot/build-push-action@v1
171168
with:
169+
project: ${{ secrets.DEPOT_PROJECT_ID }}
170+
token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
172171
file: src/variations/${{ matrix.php_variation }}/Dockerfile
173-
cache-from: type=gha
174-
cache-to: type=gha
175172
build-args: |
176173
BASE_OS_VERSION=${{ matrix.base_os }}
177174
PHP_VERSION=${{ matrix.patch_version }}

0 commit comments

Comments
 (0)