Skip to content

Commit

Permalink
updates actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bnallapeta committed Jan 16, 2024
1 parent fc311c4 commit ca4da7f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
Expand All @@ -33,13 +33,13 @@ jobs:
echo "##[set-output name=GIT_TAG;]$(echo ${tag})"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ${{ env.CONTAINER_REGISTRY_URL }}
username: ${{ env.CONTAINER_REGISTRY_USERNAME }}
Expand All @@ -49,9 +49,9 @@ jobs:
id: image_repository_op
run: |
echo IMAGE_REPOSITORY=$(echo ${{ env.CONTAINER_REGISTRY_URL }}/${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
Expand All @@ -67,7 +67,7 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
- name: Comment on PR
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
env:
GITHUB_TOKEN: ${{ env.CONTAINER_REGISTRY_PASSWORD }}
with:
Expand All @@ -76,7 +76,7 @@ jobs:

- name: Notify Failure
if: failure()
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
env:
GITHUB_TOKEN: ${{ env.CONTAINER_REGISTRY_PASSWORD }}
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
Expand All @@ -33,13 +33,13 @@ jobs:
DRY_RUN: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ${{ env.CONTAINER_REGISTRY_URL }}
username: ${{ env.CONTAINER_REGISTRY_USERNAME }}
Expand All @@ -51,7 +51,7 @@ jobs:
echo IMAGE_REPOSITORY=$(echo ${{ env.CONTAINER_REGISTRY_URL }}/${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
Expand All @@ -67,7 +67,7 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
- name: Comment on PR
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
env:
GITHUB_TOKEN: ${{ env.CONTAINER_REGISTRY_PASSWORD }}
with:
Expand All @@ -83,7 +83,7 @@ jobs:

- name: Notify Failure
if: failure()
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
env:
GITHUB_TOKEN: ${{ env.CONTAINER_REGISTRY_PASSWORD }}
with:
Expand Down

0 comments on commit ca4da7f

Please sign in to comment.