Run on github runners
This commit is contained in:
37
.github/workflows/deploy-dev.yaml
vendored
37
.github/workflows/deploy-dev.yaml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
- ".vscode/**"
|
||||
|
||||
concurrency:
|
||||
group: deploy-${{ github.ref }}
|
||||
group: deploy-dev
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@@ -30,17 +30,30 @@ jobs:
|
||||
test:
|
||||
uses: ditkrg/dit-digital-service-manual/.github/workflows/tests-base.yaml@dev
|
||||
|
||||
build:
|
||||
uses: ditkrg/common-github-workflows/.github/workflows/build-push-image.yaml@main
|
||||
needs: [setup, test]
|
||||
with:
|
||||
tags: |-
|
||||
${{ needs.setup.outputs.image }}
|
||||
${{ needs.setup.outputs.image-sha }}
|
||||
cache-from: type=registry,ref=${{ needs.setup.outputs.image }}
|
||||
secrets:
|
||||
username: ${{ secrets.HARBOR_USER }}
|
||||
password: ${{ secrets.HARBOR_TOKEN }}
|
||||
build-push:
|
||||
name: Build and Push
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: reg.dev.krd
|
||||
username: ${{ secrets.HARBOR_USER }}
|
||||
password: ${{ secrets.HARBOR_TOKEN }}
|
||||
|
||||
- name: Build and push Docker images
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: |-
|
||||
${{ needs.setup.outputs.image }}
|
||||
${{ needs.setup.outputs.image-sha }}
|
||||
cache-from: type=registry,ref=${{ needs.setup.outputs.image }}-buildcache
|
||||
cache-to: type=registry,ref=${{ needs.setup.outputs.image }}-buildcache,mode=max
|
||||
|
||||
deploy:
|
||||
uses: ditkrg/dit-digital-service-manual/.github/workflows/deploy-base.yaml@dev
|
||||
|
||||
Reference in New Issue
Block a user