Skip to content

Commit

Permalink
Update build-pipelines.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Volkov authored May 29, 2023
1 parent 583340e commit b0568aa
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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 }}

0 comments on commit b0568aa

Please sign in to comment.