From b0568aa11078dc1290978792f195e722d6b51d75 Mon Sep 17 00:00:00 2001 From: Vlad Volkov Date: Mon, 29 May 2023 14:13:24 +0300 Subject: [PATCH] Update build-pipelines.yml --- .github/workflows/build-pipelines.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-pipelines.yml b/.github/workflows/build-pipelines.yml index 4b04568..603da6e 100644 --- a/.github/workflows/build-pipelines.yml +++ b/.github/workflows/build-pipelines.yml @@ -24,6 +24,8 @@ jobs: docker: runs-on: self-hosted environment: ${{ inputs.environment }} + env: + DOCKER_REPOSITORY: dcr.bndigital.dev/${{ github.event.repository.name }} concurrency: group: ${{ github.event.repository.name }}-docker-${{ github.ref_name }} cancel-in-progress: true @@ -55,14 +57,13 @@ jobs: registry: ${{ secrets.DOCKER_REGISTRY }}/${{ env.APP_NAME }} username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - + - name: Install skaffold - uses: hiberbee/github-action-skaffold@1.27.0 + run: | + curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 + sudo install skaffold /usr/bin/ + curl -Lo container-structure-test https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 + sudo install container-structure-test /usr/bin/ - name: Build images - run: skaffold build - env: - SKAFFOLD_DEFAULT_REPO: ${{ secrets.DOCKER_REGISTRY }}/${{ env.APP_NAME }} - SKAFFOLD_TAG: ${{ env.APP_VERSION }} - SKAFFOLD_PUSH: true - SKAFFOLD_SKIP_TESTS: false + run: skaffold build --default-repo=${{ env.DOCKER_REPOSITORY }} --tag=${{ inputs.version }}