Run on github runners
This commit is contained in:
parent
857c444525
commit
a7b1891501
2
.github/workflows/deploy-base.yaml
vendored
2
.github/workflows/deploy-base.yaml
vendored
@ -23,7 +23,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
runs-on: [self-hosted, ubuntu-focal]
|
runs-on: ubuntu-20.04
|
||||||
environment:
|
environment:
|
||||||
url: ${{ inputs.env_url }}
|
url: ${{ inputs.env_url }}
|
||||||
name: ${{ inputs.env_name }}
|
name: ${{ inputs.env_name }}
|
||||||
|
|||||||
29
.github/workflows/deploy-dev.yaml
vendored
29
.github/workflows/deploy-dev.yaml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
- ".vscode/**"
|
- ".vscode/**"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: deploy-${{ github.ref }}
|
group: deploy-dev
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -30,17 +30,30 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
uses: ditkrg/dit-digital-service-manual/.github/workflows/tests-base.yaml@dev
|
uses: ditkrg/dit-digital-service-manual/.github/workflows/tests-base.yaml@dev
|
||||||
|
|
||||||
build:
|
build-push:
|
||||||
uses: ditkrg/common-github-workflows/.github/workflows/build-push-image.yaml@main
|
name: Build and Push
|
||||||
needs: [setup, test]
|
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:
|
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: |-
|
tags: |-
|
||||||
${{ needs.setup.outputs.image }}
|
${{ needs.setup.outputs.image }}
|
||||||
${{ needs.setup.outputs.image-sha }}
|
${{ needs.setup.outputs.image-sha }}
|
||||||
cache-from: type=registry,ref=${{ needs.setup.outputs.image }}
|
cache-from: type=registry,ref=${{ needs.setup.outputs.image }}-buildcache
|
||||||
secrets:
|
cache-to: type=registry,ref=${{ needs.setup.outputs.image }}-buildcache,mode=max
|
||||||
username: ${{ secrets.HARBOR_USER }}
|
|
||||||
password: ${{ secrets.HARBOR_TOKEN }}
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
uses: ditkrg/dit-digital-service-manual/.github/workflows/deploy-base.yaml@dev
|
uses: ditkrg/dit-digital-service-manual/.github/workflows/deploy-base.yaml@dev
|
||||||
|
|||||||
27
.github/workflows/deploy-production.yaml
vendored
27
.github/workflows/deploy-production.yaml
vendored
@ -28,17 +28,30 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
uses: ditkrg/dit-digital-service-manual/.github/workflows/tests-base.yaml@main
|
uses: ditkrg/dit-digital-service-manual/.github/workflows/tests-base.yaml@main
|
||||||
|
|
||||||
build:
|
build-push:
|
||||||
uses: ditkrg/common-github-workflows/.github/workflows/build-push-image.yaml@main
|
name: Build and Push
|
||||||
needs: [setup, test]
|
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:
|
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: |-
|
tags: |-
|
||||||
${{ needs.setup.outputs.image }}
|
${{ needs.setup.outputs.image }}
|
||||||
${{ needs.setup.outputs.image-sha }}
|
${{ needs.setup.outputs.image-sha }}
|
||||||
cache-from: type=registry,ref=${{ needs.setup.outputs.image }}
|
cache-from: type=registry,ref=${{ needs.setup.outputs.image }}-buildcache
|
||||||
secrets:
|
cache-to: type=registry,ref=${{ needs.setup.outputs.image }}-buildcache,mode=max
|
||||||
username: ${{ secrets.HARBOR_USER }}
|
|
||||||
password: ${{ secrets.HARBOR_TOKEN }}
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
uses: ditkrg/dit-digital-service-manual/.github/workflows/deploy-base.yaml@main
|
uses: ditkrg/dit-digital-service-manual/.github/workflows/deploy-base.yaml@main
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user