Skip to content

Commit

Permalink
Update all wf actions for azure
Browse files Browse the repository at this point in the history
  • Loading branch information
iaacautomation committed Sep 27, 2024
1 parent 0db0244 commit 8ef1515
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy-azure.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-azure
if: "${{ github.event_name == 'push' && ! contains(github.ref,'tag') }}"
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: deploy-azure
push: true
Expand All @@ -52,20 +52,21 @@ 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 }}
Expand All @@ -86,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-azure
push: true
Expand Down

0 comments on commit 8ef1515

Please sign in to comment.