|
1 | 1 | name: Build Docker images |
| 2 | +permissions: |
| 3 | + contents: read |
2 | 4 | env: |
3 | 5 | KATSU_BUILD_TASK_NAME: "Build image" |
4 | 6 | REGISTRY: ghcr.io |
|
36 | 38 | steps: |
37 | 39 |
|
38 | 40 | - name: Checkout |
39 | | - uses: actions/checkout@v4 |
| 41 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
40 | 42 |
|
41 | 43 | - name: sanitize artifact name |
42 | 44 | run: | |
|
64 | 66 | popd |
65 | 67 |
|
66 | 68 | - name: Upload Artifact |
67 | | - uses: actions/upload-artifact@v4 |
| 69 | + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 |
68 | 70 | with: |
69 | 71 | name: ${{ env.artifact }}-docker |
70 | 72 | path: katsu/katsu-work/image/*.tar.xz |
|
81 | 83 | - name: Install dependencies |
82 | 84 | run: sudo apt-get update && sudo apt-get install -y buildah |
83 | 85 | - name: Log in to ghcr.io |
84 | | - uses: redhat-actions/podman-login@v1 |
| 86 | + uses: redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1 |
85 | 87 | with: |
86 | 88 | username: ${{ github.repository_owner }} |
87 | 89 | password: ${{ secrets.GITHUB_TOKEN }} |
|
90 | 92 | # how do i combine those two images into one multiarch tag |
91 | 93 |
|
92 | 94 | - name: Download artifacts |
93 | | - uses: actions/download-artifact@v4 |
| 95 | + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
94 | 96 |
|
95 | 97 | - name: Publish to registry |
96 | 98 | run: | |
@@ -124,20 +126,20 @@ jobs: |
124 | 126 |
|
125 | 127 | steps: |
126 | 128 | - name: Checkout |
127 | | - uses: actions/checkout@v2 |
| 129 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
128 | 130 | - name: Set up QEMU |
129 | | - uses: docker/setup-qemu-action@v3 |
| 131 | + uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0 |
130 | 132 | - name: Set up Docker Buildx |
131 | | - uses: docker/setup-buildx-action@v3 |
| 133 | + uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 |
132 | 134 | - name: Log into registry ${{ env.REGISTRY }} |
133 | | - uses: docker/login-action@v2.1.0 |
| 135 | + uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0 |
134 | 136 | with: |
135 | 137 | registry: ${{ env.REGISTRY }} |
136 | 138 | username: ${{ github.actor }} |
137 | 139 | password: ${{ secrets.GITHUB_TOKEN }} |
138 | 140 |
|
139 | 141 | - name: Build images |
140 | | - uses: docker/build-push-action@v6 |
| 142 | + uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0 |
141 | 143 | with: |
142 | 144 | context: . |
143 | 145 | file: ${{ matrix.docker.dockerfile }} |
|
0 commit comments