Skip to content

Commit 9c95fe5

Browse files
committed
Update CI build workflow
1 parent 323709b commit 9c95fe5

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Diff for: .github/workflows/build.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,33 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Set up QEMU
16-
uses: docker/setup-qemu-action@v3
16+
# https://github.com/docker/setup-qemu-action
17+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
1718

1819
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v3
20+
# https://github.com/docker/setup-buildx-action
21+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
2022

2123
- name: Login to GHCR
22-
uses: docker/[email protected]
24+
# https://github.com/docker/login-action
25+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
2326
with:
2427
registry: ghcr.io
2528
username: ${{ github.repository_owner }}
2629
password: ${{ secrets.PACKAGES_TOKEN }}
2730

28-
- name: Get branch names
29-
uses: tj-actions/[email protected]
31+
- name: Get branch name
3032
id: branch-name
33+
run: |
34+
echo "current_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
3135
3236
- name: image name
3337
run: echo ghcr.io/${{ github.repository }}:${{ steps.branch-name.outputs.current_branch }}
3438

3539
- name: Build backend
3640
id: docker_build
37-
uses: docker/build-push-action@v5
41+
# https://github.com/docker/build-push-action
42+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
3843
with:
3944
file: "Dockerfile"
4045
push: true

0 commit comments

Comments
 (0)