From 255edf3390b5dea2e11e32d76005bfa6b75ceaa1 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 13 Mar 2024 11:23:49 +0100 Subject: [PATCH] test workflow build and push on gitea registry --- .github/workflows/build.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8b1596..848523f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,14 +9,6 @@ on: jobs: build_and_push: runs-on: ubuntu-latest - container: - image: ghcr.io/catthehacker/ubuntu:act-latest - - services: - my_docker: - image: ghcr.io/catthehacker/ubuntu:act-latest - ports: - - 2367:2367 steps: - name: Checkout repository @@ -51,9 +43,18 @@ jobs: # run: | # echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}" - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: "{{defaultContext}}" - push: true - tags: "git.coopgo.io/coopgo-platform/mobility-accounts:test" + # - name: Build and push Docker image + # uses: docker/build-push-action@v2 + # with: + # context: "{{defaultContext}}" + # push: true + # tags: "git.coopgo.io/coopgo-platform/mobility-accounts:test" + - name: Build and Push Docker Image + run: | + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --build-arg ACCESS_TOKEN_USR=ncaron\ + --build-arg ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d \ + --tag git.coopgo.io/coopgo-platform/mobility-accounts:test \ + --push . + working-directory: /work \ No newline at end of file