From d24ed53b458695164787d3b2cb3f99ba26610b45 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 20 Mar 2024 12:32:40 +0100 Subject: [PATCH] test --- .github/workflows/build.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82e7891..dc8191b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,29 +7,17 @@ on: - dev jobs: - build-and-push: + checkout_repository: runs-on: ubuntu-latest - container: - image: docker:latest + container: + image: moby/buildkit:latest steps: - # - name: Checkout repository - # uses: actions/checkout@v2 + # - name: Checkout repository + # uses: actions/checkout@v3 - - - name: Build and Push Docker Image - run: | - docker run --rm \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v $(pwd):/workspace \ - gcr.io/kaniko-project/executor:latest \ - --dockerfile /workspace/Dockerfile \ - --destination $DOCKER_REGISTRY/$IMAGE_NAME:$IMAGE_TAG - env: - DOCKER_REGISTRY: git.coopgo.io - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - IMAGE_NAME: coopgo-platform/mobility-accounts - IMAGE_TAG: test + - name: Build and Push Docker Image + run: | + buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --opt build-arg=ACCESS_TOKEN_USR=ncaron --opt build-arg=ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d --output type=image,name=git.coopgo.io/coopgo-platform/mobility-accounts:test,push=true,registry.insecure=true # login_docker_registry: # runs-on: