Skip to content

Commit 3714ee2

Browse files
committed
CI for docker build update
1 parent b52c366 commit 3714ee2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/push-oidc-containers.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- main
66
tags:
77
- "*"
8+
pull_request:
9+
branches:
10+
- main
811

912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -15,7 +18,7 @@ jobs:
1518
name: Build and push Docker image
1619
runs-on: [matterlabs-ci-runner]
1720
steps:
18-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1922

2023
- name: Set git SHA
2124
id: git_sha
@@ -37,10 +40,10 @@ jobs:
3740
fi
3841
3942
- name: Set up Docker Buildx
40-
uses: docker/setup-buildx-action@v3
43+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.0
4144

4245
- name: Log in to Docker Hub
43-
uses: docker/login-action@v2
46+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
4447
with:
4548
username: ${{ secrets.DOCKERHUB_USER }}
4649
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -49,12 +52,9 @@ jobs:
4952
run: |
5053
gcloud auth configure-docker us-docker.pkg.dev -q
5154
52-
- name: Set up QEMU
53-
uses: docker/setup-qemu-action@v3
54-
5555
- name: Build and push oidc-server image
5656
id: docker_build_oidc
57-
uses: docker/build-push-action@v6
57+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
5858
with:
5959
context: .
6060
file: Dockerfile
@@ -68,7 +68,7 @@ jobs:
6868
6969
- name: Build and push key-registry image
7070
id: docker_build_key_registry
71-
uses: docker/build-push-action@v6
71+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
7272
with:
7373
context: .
7474
file: Dockerfile
@@ -83,4 +83,4 @@ jobs:
8383
- name: Print image digest to summary
8484
run: |
8585
echo "OIDC Server Image tag: ${{ steps.docker_tag.outputs.tag }}" >> $GITHUB_STEP_SUMMARY
86-
echo "Key Registry Image tag: ${{ steps.docker_tag.outputs.tag }}" >> $GITHUB_STEP_SUMMARY
86+
echo "Key Registry Image tag: ${{ steps.docker_tag.outputs.tag }}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)