Skip to content

Commit

Permalink
Update github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Manpreet Singh Nehra committed Feb 17, 2024
1 parent 46b823d commit 338f88a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ jobs:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Github Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

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

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

- name: Test Build for deploy
if: "${{ github.event_name == 'push' && ! contains(github.ref,'tag') }}"
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: deploy
push: true
Expand All @@ -53,28 +53,28 @@ jobs:
- name: Get tag
if: contains(github.ref,'tag')
id: tag
uses: dawidd6/action-get-tag@v1
uses: devops-actions/action-get-tag@v1.0.1
with:
strip_v: true

- name: Log in to the Docker Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_ACCOUNT }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the Gitlab Container registry
if: contains(github.ref,'tag')
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_ACCOUNT }}
password: ${{ secrets.GITLAB_TOKEN }}

- name: Configure AWS credentials
if: contains(github.ref,'tag')
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
Expand All @@ -87,7 +87,7 @@ jobs:

- name: Build and Push images
if: contains(github.ref,'tag')
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: deploy
push: true
Expand Down

0 comments on commit 338f88a

Please sign in to comment.