Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
talesmarra committed Sep 16, 2022
1 parent a53daf7 commit 4a0cecc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,22 @@ jobs:
deploy_docker_image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

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

- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./
context: .
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/myimage:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/myimage:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/myimage:buildcache,mode=max
cache: "enabled"

0 comments on commit 4a0cecc

Please sign in to comment.