From 4640f5d1f647ba4d010874a9fcb1e221a48701b2 Mon Sep 17 00:00:00 2001 From: Matlavv Date: Wed, 20 Nov 2024 11:55:11 +0100 Subject: [PATCH] Test to update helm chart version --- .github/workflows/ci.yml | 80 ++++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5888a2b..d3b89e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,46 +65,46 @@ jobs: git config --global user.email 'github-actions@github.com' git tag ${{ steps.set_output.outputs.new_version }} git push origin ${{ steps.set_output.outputs.new_version }} - build-and-push-docker-api: - runs-on: ubuntu-latest - needs: determine-version - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Cache npm dependencies for API - uses: actions/cache@v3 - with: - path: src/api/node_modules - key: ${{ runner.os }}-api-node-modules-${{ hashFiles('src/api/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-api-node-modules- - - name: Install npm dependencies for API - working-directory: src/api - run: npm install - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ hashFiles('src/api/Dockerfile', 'src/api/.dockerignore') }}-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-${{ hashFiles('src/api/Dockerfile', 'src/api/.dockerignore') }}- - - 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 API - run: | - docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:api-${{ needs.determine-version.outputs.new_version }} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max ./src/api +build-and-push-docker-api: + runs-on: ubuntu-latest + needs: determine-version + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Cache npm dependencies for API + uses: actions/cache@v3 + with: + path: src/api/node_modules + key: ${{ runner.os }}-api-node-modules-${{ hashFiles('src/api/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-api-node-modules- + - name: Install npm dependencies for API + working-directory: src/api + run: npm install + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + with: + install: true + + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ hashFiles('src/api/Dockerfile', 'src/api/.dockerignore') }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx-${{ hashFiles('src/api/Dockerfile', 'src/api/.dockerignore') }}- + - 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 API + run: | + docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:api-${{ needs.determine-version.outputs.new_version }} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max ./src/api build-and-push-docker-job: runs-on: ubuntu-latest needs: determine-version