Skip to content

Commit 9034871

Browse files
committed
update gh action
1 parent 39811ac commit 9034871

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/build_docker_images.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
2222

2323
- name: Shell-Script
2424
id: script
@@ -31,48 +31,48 @@ jobs:
3131
#DOCKER_REPO=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPO_SHORT}
3232
#REDHAT_QUAY_REPO=${{ secrets.REDHAT_QUAY_USERNAME }}/${GITHUB_REPO_SHORT}
3333
34-
# Set output parameters to github action.
35-
echo ::set-output name=build_date::${BUILD_DATE}
36-
echo ::set-output name=build_date_numeric::${BUILD_DATE_NUMERIC}
37-
echo ::set-output name=commit_hash::${COMMIT_HASH}
38-
echo ::set-output name=github_repo::${GITHUB_REPO}
39-
#echo ::set-output name=docker_repo::${DOCKER_REPO}
40-
#echo ::set-output name=redhat_quay_repo::${REDHAT_QUAY_REPO}
34+
# Set output parameters to action.
35+
echo "build_date=${BUILD_DATE}" >> "$GITHUB_OUTPUT"
36+
echo "build_date_numeric=${BUILD_DATE_NUMERIC}" >> "$GITHUB_OUTPUT"
37+
echo "commit_hash=${COMMIT_HASH}" >> "$GITHUB_OUTPUT"
38+
echo "github_repo=${GITHUB_REPO}" >> "$GITHUB_OUTPUT"
39+
echo "docker_repo=${DOCKER_REPO}" >> "$GITHUB_OUTPUT"
40+
echo "redhat_quay_repo=${REDHAT_QUAY_REPO}" >> "$GITHUB_OUTPUT"
4141
4242
- name: Set up QEMU
4343
id: qemu
44-
uses: docker/setup-qemu-action@v1
44+
uses: docker/setup-qemu-action@v3
4545
with:
4646
image: tonistiigi/binfmt:latest
4747
platforms: all
4848

4949
- name: Set up Docker Buildx
5050
id: buildx
51-
uses: docker/setup-buildx-action@master
51+
uses: docker/setup-buildx-action@v3
5252

5353
- name: Login to GitHub Container Registry
54-
uses: docker/login-action@v1
54+
uses: docker/login-action@v3
5555
with:
5656
registry: ghcr.io
5757
username: ${{ github.repository_owner }}
5858
password: ${{ secrets.GITHUB_TOKEN }}
5959

6060
#- name: Login to DockerHub
61-
# uses: docker/login-action@v1
61+
# uses: docker/login-action@v3
6262
# with:
6363
# registry: docker.io
6464
# username: ${{ secrets.DOCKER_USERNAME }}
6565
# password: ${{ secrets.DOCKER_PASSWORD }}
6666

6767
#- name: Login to RED HAT Quay.io Container Registry
68-
# uses: docker/login-action@v1
68+
# uses: docker/login-action@v3
6969
# with:
7070
# registry: quay.io
7171
# username: ${{ secrets.REDHAT_QUAY_USERNAME }}
7272
# password: ${{ secrets.REDHAT_QUAY_PASSWORD }}
7373

7474
- name: Build
75-
uses: docker/build-push-action@v2
75+
uses: docker/build-push-action@v6
7676
with:
7777
builder: ${{ steps.buildx.outputs.name }}
7878
context: .

0 commit comments

Comments
 (0)