From 0454bc19ab54fb719ea807d5c5ca043d86d04515 Mon Sep 17 00:00:00 2001 From: Michel Promonet Date: Sat, 20 Jan 2024 23:20:03 +0100 Subject: [PATCH] try to use cache for docker build --- .github/workflows/deploy-docker.yml | 8 +++++--- .github/workflows/okteto.yml | 21 --------------------- 2 files changed, 5 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/okteto.yml diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index e6fb4c19..8eb98d34 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -18,10 +18,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push devcontainer - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . push: true @@ -31,10 +31,12 @@ jobs: tags: ghcr.io/${{ github.repository }}:dev - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . push: true + cache-from: type=gha + cache-to: type=gha,mode=max tags: ghcr.io/${{ github.repository }}:latest - name: Log in to Azure diff --git a/.github/workflows/okteto.yml b/.github/workflows/okteto.yml deleted file mode 100644 index 74fedfa7..00000000 --- a/.github/workflows/okteto.yml +++ /dev/null @@ -1,21 +0,0 @@ -# File: .github/workflows/workflow.yml -on: [push] - -name: okteto - -jobs: - - devflow: - runs-on: ubuntu-latest - steps: - - uses: okteto/context@latest - with: - token: ${{ secrets.OKTETO_TOKEN }} - - - uses: okteto/namespace@latest - with: - namespace: mpromonet - - - uses: okteto/pipeline@latest - with: - name: master