From 62a756d2f3b0f423d68ca2c54cead3c0952730cf Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 15 Mar 2024 11:44:59 +0100 Subject: [PATCH] test workflow build and push on gitea registry --- .github/workflows/build.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1bf3f8c..0a5b505 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,35 +22,27 @@ jobs: run: | pwd ls -la - - - name: test - image: ghcr.io/catthehacker/ubuntu:act-latest - imagePullPolicy: Always + + - name: Install Docker run: | + sudo apt-get update + sudo apt-get install apt-transport-https ca-certificates curl software-properties-common + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" + sudo apt-get update + sudo apt-get install docker-ce docker --version - pwd - ls -la - name: Login to Docker Registry - image: ghcr.io/catthehacker/ubuntu:act-latest - imagePullPolicy: Always uses: docker/login-action@v2 with: registry: git.coopgo.io username: ncaron password: 6744954b4a3a43422e62e8d110f90de527ce094d - - - name: runner - image: docker:20.10.7 - imagePullPolicy: Always - run: | - docker --version - dockerd & - pwd - ls -la - docker buildx build -t git.coopgo.io/coopgo-platform/mobility-accounts:test . - + - name: Docker Build + run: | + docker build -t git.coopgo.io/coopgo-platform/mobility-accounts:test --build-arg ACCESS_TOKEN # checkout_repository: # runs-on: # group: ubuntu-latest