From 7b0786ef9658473104763ffcb488f1f616adb0ed Mon Sep 17 00:00:00 2001 From: Matlavv Date: Fri, 15 Nov 2024 15:19:53 +0100 Subject: [PATCH] test the CI - separate each steps for mor visibility on the builds --- .github/workflows/ci.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1957c1a..fbb33ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ env: CHART_PATH: ./opensource jobs: - setup-docker: + build-and-push-docker-api: runs-on: ubuntu-latest steps: @@ -28,26 +28,12 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - build-and-push-docker-api: - runs-on: ubuntu-latest - needs: setup-docker - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - name: Build and push Docker image API run: | docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:latest ./src/api build-and-push-docker-job: runs-on: ubuntu-latest - needs: setup-docker steps: - name: Checkout repository @@ -58,6 +44,12 @@ jobs: with: install: true + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push Docker image Job run: | docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:job-latest ./src