Skip to content

Commit

Permalink
chore(actions): update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrtak-CZ committed Apr 29, 2024
1 parent ef92795 commit c5d7db0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,30 @@ jobs:
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1

- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public

Expand All @@ -56,13 +56,13 @@ jobs:
uses: battila7/get-version-action@v2

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

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

- name: Build and push - testing - slim
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
timeout-minutes: 15
if: ${{ !steps.get-version.outputs.is-semver }}
with:
Expand All @@ -83,7 +83,7 @@ jobs:
ghcr.io/${{ github.repository }}:${{ github.ref_name }}-slim
- name: Build and push - testing - alpine
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
timeout-minutes: 15
if: ${{ !steps.get-version.outputs.is-semver }}
with:
Expand All @@ -104,7 +104,7 @@ jobs:
ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine
- name: Build and push - pre-release - slim
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
timeout-minutes: 15
if: ${{ steps.get-version.outputs.is-semver && steps.get-version.outputs.prerelease != '' }}
with:
Expand All @@ -125,7 +125,7 @@ jobs:
ghcr.io/${{ github.repository }}:${{ steps.get-version.outputs.version-without-v }}-slim
- name: Build and push - pre-release - alpine
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
timeout-minutes: 15
if: ${{ steps.get-version.outputs.is-semver && steps.get-version.outputs.prerelease != '' }}
with:
Expand All @@ -146,7 +146,7 @@ jobs:
ghcr.io/${{ github.repository }}:${{ steps.get-version.outputs.version-without-v }}-alpine
- name: Build and push - stable - slim
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
timeout-minutes: 15
if: ${{ steps.get-version.outputs.is-semver && steps.get-version.outputs.prerelease == '' }}
with:
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
ghcr.io/${{ github.repository }}:${{ steps.get-version.outputs.major }}
- name: Build and push - stable - alpine
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
timeout-minutes: 15
if: ${{ steps.get-version.outputs.is-semver && steps.get-version.outputs.prerelease == '' }}
with:
Expand Down

0 comments on commit c5d7db0

Please sign in to comment.