Skip to content

Commit

Permalink
Upgrade Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
admin committed Jan 19, 2024
1 parent 3f0ef2f commit 64676b6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
##
# Perform Maven Release
#
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: master
- name: Set up JDK 11
Expand All @@ -45,7 +45,7 @@ jobs:
##
# Checkout and Build the Tag
#
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ steps.get_tag_name.outputs.VERSION }}

Expand All @@ -72,23 +72,23 @@ jobs:
# Publish to Github Docker Registry
#
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ steps.get_tag_name.outputs.VERSION }}
latest
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand All @@ -99,23 +99,23 @@ jobs:
# Publish to Alternate Docker Registry
#
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
registry: ${{ env.ALTERNATE_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta_alt
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5
with:
images: ${{ env.ALTERNATE_REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ steps.get_tag_name.outputs.VERSION }}
latest
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand All @@ -129,4 +129,4 @@ jobs:
with:
body: Release version ${{ steps.get_tag_name.outputs.VERSION }}
tag: ${{ steps.get_tag_name.outputs.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 64676b6

Please sign in to comment.