From dba7d992d41dc7f9469b8d303497747828d6a870 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 13 Mar 2024 09:04:16 +0100 Subject: [PATCH] test workflow build and push on gitea registry --- .github/workflows/build.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e29bf86..3539dfd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,10 +16,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Install Docker + - name: 'install docker-ce-cli' run: | apt-get update - apt-get install -y docker.io + install -m 0755 -d /etc/apt/keyrings + curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg + chmod a+r /etc/apt/keyrings/docker.gpg + echo \ + "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ + "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null + apt-get update + apt-get install -y docker-ce-cli docker-compose-plugin - name: Login to Docker Registry uses: docker/login-action@v2 @@ -35,8 +43,8 @@ jobs: docker buildx build --platform linux/amd64,linux/arm64 -t git.coopgo.io/coopgo-platform/mobility-accounts:test . docker push git.coopgo.io/coopgo-platform/mobility-accounts:test - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 # - name: Get Gitea Tags # id: get_tags @@ -50,9 +58,9 @@ 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"