Skip to content

Commit

Permalink
fix: docker-image ci1
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Carlos Silva committed Oct 5, 2023
1 parent 2ad846f commit 89d60c5
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,14 @@ jobs:
runs-on: ubuntu-latest

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

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

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKERUSERNAME }}
password: ${{ env.DOCKERPASS }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: '../../.'
push: true
tags: ${{ env.DOCKERUSERNAME }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
- name: Build e Push no Azure Container Registry
run: |
docker build . --file Dockerfile --tag ${{ env.REGISTRY }}/${{env.IMAGE_NAME}}:latest
docker tag ${{ env.REGISTRY }}/${{env.IMAGE_NAME}}:latest ${{ env.REGISTRY }}/${{env.IMAGE_NAME}}:${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{env.IMAGE_NAME}}

0 comments on commit 89d60c5

Please sign in to comment.