diff --git a/.github/workflows/api-docker-publish-image.yml b/.github/workflows/api-docker-publish-image.yml index 689706bcfe79..c44e968ff901 100644 --- a/.github/workflows/api-docker-publish-image.yml +++ b/.github/workflows/api-docker-publish-image.yml @@ -13,6 +13,10 @@ jobs: runs-on: ubuntu-latest name: API Publish Docker Image + permissions: + id-token: write + contents: read + steps: - name: Cloning repo uses: actions/checkout@v3 @@ -27,16 +31,13 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} + - name: Set up Depot CLI + uses: depot/setup-action@v1 + - name: Write git info to Docker image run: | echo ${{ github.sha }} > api/CI_COMMIT_SHA - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login to DockerHub uses: docker/login-action@v2 with: @@ -45,10 +46,11 @@ jobs: - name: Build and push images id: docker_build - uses: docker/build-push-action@v3 + uses: depot/build-push-action@v1 with: platforms: linux/amd64,linux/arm64 file: api/Dockerfile + project: qsrts2l4gr context: . push: true tags: ${{ steps.meta.outputs.tags }}