From 4a0cecc927affaf6b353c29dd5718f8225f18087 Mon Sep 17 00:00:00 2001 From: talesmarra Date: Fri, 16 Sep 2022 18:48:32 +0200 Subject: [PATCH] test --- .github/workflows/deploy.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cd49073..0d2d33e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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"