|
7 | 7 | description: "Version to release (e.g. v0.1.0)" |
8 | 8 | required: true |
9 | 9 |
|
10 | | -permissions: |
| 10 | +permissions: {} |
11 | 11 |
|
12 | 12 | env: |
13 | 13 | GO_VERSION: 1.24.1 |
@@ -48,51 +48,51 @@ jobs: |
48 | 48 | ./.artifacts/pipedv1_${{ inputs.version }}_darwin_amd64 |
49 | 49 | ./.artifacts/pipedv1_${{ inputs.version }}_darwin_arm64 |
50 | 50 |
|
51 | | - container_image: |
52 | | - runs-on: ubuntu-24.04 |
53 | | - permissions: |
54 | | - contents: read |
55 | | - packages: write |
56 | | - strategy: |
57 | | - matrix: |
58 | | - container_registry: |
59 | | - - ghcr.io/pipe-cd |
60 | | - - gcr.io/pipecd |
61 | | - steps: |
62 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
63 | | - with: |
64 | | - fetch-depth: 0 |
| 51 | + container_image: |
| 52 | + runs-on: ubuntu-24.04 |
| 53 | + permissions: |
| 54 | + contents: read |
| 55 | + packages: write |
| 56 | + strategy: |
| 57 | + matrix: |
| 58 | + container_registry: |
| 59 | + - ghcr.io/pipe-cd |
| 60 | + - gcr.io/pipecd |
| 61 | + steps: |
| 62 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 63 | + with: |
| 64 | + fetch-depth: 0 |
65 | 65 |
|
66 | | - # Setup QEMU and Buildx. |
67 | | - - name: Set up QEMU |
68 | | - uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 |
69 | | - - name: Set up Docker Buildx |
70 | | - uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 |
| 66 | + # Setup QEMU and Buildx. |
| 67 | + - name: Set up QEMU |
| 68 | + uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 |
| 69 | + - name: Set up Docker Buildx |
| 70 | + uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 |
71 | 71 |
|
72 | | - # Login to push container images. |
73 | | - - name: Log in to GHCR |
74 | | - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 |
75 | | - with: |
76 | | - registry: ${{ env.GHCR }} |
77 | | - username: ${{ github.actor }} |
78 | | - password: ${{ secrets.GITHUB_TOKEN }} |
| 72 | + # Login to push container images. |
| 73 | + - name: Log in to GHCR |
| 74 | + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 |
| 75 | + with: |
| 76 | + registry: ${{ env.GHCR }} |
| 77 | + username: ${{ github.actor }} |
| 78 | + password: ${{ secrets.GITHUB_TOKEN }} |
79 | 79 |
|
80 | | - - name: Log in to GCR |
81 | | - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 |
82 | | - with: |
83 | | - registry: ${{ env.GCR }} |
84 | | - username: _json_key |
85 | | - password: ${{ secrets.GCR_SA }} |
| 80 | + - name: Log in to GCR |
| 81 | + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 |
| 82 | + with: |
| 83 | + registry: ${{ env.GCR }} |
| 84 | + username: _json_key |
| 85 | + password: ${{ secrets.GCR_SA }} |
86 | 86 |
|
87 | | - # Building and pushing container images. |
88 | | - - name: Build and push pipedv1 experimental image |
89 | | - uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 |
90 | | - with: |
91 | | - push: true |
92 | | - context: . |
93 | | - file: cmd/pipedv1/Dockerfile |
94 | | - tags: ${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:${{ inputs.version }} |
95 | | - platforms: linux/amd64,linux/arm64 |
96 | | - # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache |
97 | | - cache-from: type=registry,ref=${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:latest |
98 | | - cache-to: type=inline |
| 87 | + # Building and pushing container images. |
| 88 | + - name: Build and push pipedv1 experimental image |
| 89 | + uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 |
| 90 | + with: |
| 91 | + push: true |
| 92 | + context: . |
| 93 | + file: cmd/pipedv1/Dockerfile |
| 94 | + tags: ${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:${{ inputs.version }} |
| 95 | + platforms: linux/amd64,linux/arm64 |
| 96 | + # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache |
| 97 | + cache-from: type=registry,ref=${{ matrix.container_registry }}/pipe-cd/pipedv1-exp:latest |
| 98 | + cache-to: type=inline |
0 commit comments