-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vlad Volkov
authored
May 29, 2023
1 parent
583340e
commit b0568aa
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 }} |