diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 700574f..48f7f03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,29 +19,44 @@ jobs: apt-get update apt-get install -y docker.io - - name: Login to Docker Registry - uses: docker/login-action@v2 + - name: Kaniko build and push + uses: aevea/action-kaniko@master with: + build_file: Dockerfile registry: git.coopgo.io username: ncaron password: 6744954b4a3a43422e62e8d110f90de527ce094d - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - driver: kubernetes - - - - name: Build and Push Docker Image - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile - push: true - tags: git.coopgo.io/coopgo-platform/mobility-accounts:test - build-args: | + image: coopgo-platform/mobility-accounts + tag: latest + cache: true + cache_registry: git.coopgo.io/coopgo-platform/mobility-accounts/cache + extra-args: | ACCESS_TOKEN_USR=ncaron ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d + + + # - name: Login to Docker Registry + # uses: docker/login-action@v2 + # with: + # registry: git.coopgo.io + # username: ncaron + # password: 6744954b4a3a43422e62e8d110f90de527ce094d + + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 + + + # - name: Build and Push Docker Image + # uses: docker/build-push-action@v2 + # with: + # context: . + # file: ./Dockerfile + # push: true + # tags: git.coopgo.io/coopgo-platform/mobility-accounts:test + # build-args: | + # ACCESS_TOKEN_USR=ncaron + # ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d + # login_docker_registry: # runs-on: # group: ubuntu-latest