From 10e3fcac16ed99effe814c61958d8a81bb89a73b Mon Sep 17 00:00:00 2001 From: khanhtc1202 Date: Mon, 1 Sep 2025 10:54:02 +0900 Subject: [PATCH 1/2] Fix workflow indent Signed-off-by: khanhtc1202 --- .github/workflows/publish_pipedv1_exp.yaml | 88 +++++++++++----------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/publish_pipedv1_exp.yaml b/.github/workflows/publish_pipedv1_exp.yaml index a0c97928d3..c426aa622a 100644 --- a/.github/workflows/publish_pipedv1_exp.yaml +++ b/.github/workflows/publish_pipedv1_exp.yaml @@ -48,51 +48,51 @@ jobs: ./.artifacts/pipedv1_${{ inputs.version }}_darwin_amd64 ./.artifacts/pipedv1_${{ inputs.version }}_darwin_arm64 - container_image: - runs-on: ubuntu-24.04 - permissions: - contents: read - packages: write - strategy: - matrix: - container_registry: - - ghcr.io/pipe-cd - - gcr.io/pipecd - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - fetch-depth: 0 + container_image: + runs-on: ubuntu-24.04 + permissions: + contents: read + packages: write + strategy: + matrix: + container_registry: + - ghcr.io/pipe-cd + - gcr.io/pipecd + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 0 - # Setup QEMU and Buildx. - - name: Set up QEMU - uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 + # Setup QEMU and Buildx. + - name: Set up QEMU + uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 - # Login to push container images. - - name: Log in to GHCR - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 - with: - registry: ${{ env.GHCR }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + # Login to push container images. + - name: Log in to GHCR + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 + with: + registry: ${{ env.GHCR }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - - name: Log in to GCR - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 - with: - registry: ${{ env.GCR }} - username: _json_key - password: ${{ secrets.GCR_SA }} + - name: Log in to GCR + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 + with: + registry: ${{ env.GCR }} + username: _json_key + password: ${{ secrets.GCR_SA }} - # Building and pushing container images. - - name: Build and push pipedv1 experimental image - uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 - with: - push: true - context: . - file: cmd/pipedv1/Dockerfile - tags: ${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:${{ inputs.version }} - platforms: linux/amd64,linux/arm64 - # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache - cache-from: type=registry,ref=${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:latest - cache-to: type=inline + # Building and pushing container images. + - name: Build and push pipedv1 experimental image + uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 + with: + push: true + context: . + file: cmd/pipedv1/Dockerfile + tags: ${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:${{ inputs.version }} + platforms: linux/amd64,linux/arm64 + # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache + cache-from: type=registry,ref=${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:latest + cache-to: type=inline From 86567561b17be3c8023aa07202a16dde6a8df217 Mon Sep 17 00:00:00 2001 From: khanhtc1202 Date: Mon, 1 Sep 2025 10:56:30 +0900 Subject: [PATCH 2/2] Fix syntax error Signed-off-by: khanhtc1202 --- .github/workflows/publish_pipedv1_exp.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_pipedv1_exp.yaml b/.github/workflows/publish_pipedv1_exp.yaml index c426aa622a..f5a28894e6 100644 --- a/.github/workflows/publish_pipedv1_exp.yaml +++ b/.github/workflows/publish_pipedv1_exp.yaml @@ -7,7 +7,7 @@ on: description: "Version to release (e.g. v0.1.0)" required: true -permissions: +permissions: {} env: GO_VERSION: 1.24.1