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:
|
||||
deploy:
|
||||
timeout-minutes: 10
|
||||
runs-on: [self-hosted, ubuntu-focal]
|
||||
runs-on: ubuntu-20.04
|
||||
environment:
|
||||
url: ${{ inputs.env_url }}
|
||||
name: ${{ inputs.env_name }}
|
||||
|
||||
29
.github/workflows/deploy-dev.yaml
vendored
29
.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]
|
||||
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 }}
|
||||
secrets:
|
||||
username: ${{ secrets.HARBOR_USER }}
|
||||
password: ${{ secrets.HARBOR_TOKEN }}
|
||||
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
|
||||
|
||||
27
.github/workflows/deploy-production.yaml
vendored
27
.github/workflows/deploy-production.yaml
vendored
@ -28,17 +28,30 @@ jobs:
|
||||
test:
|
||||
uses: ditkrg/dit-digital-service-manual/.github/workflows/tests-base.yaml@main
|
||||
|
||||
build:
|
||||
uses: ditkrg/common-github-workflows/.github/workflows/build-push-image.yaml@main
|
||||
needs: [setup, test]
|
||||
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 }}
|
||||
secrets:
|
||||
username: ${{ secrets.HARBOR_USER }}
|
||||
password: ${{ secrets.HARBOR_TOKEN }}
|
||||
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@main
|
||||
|
||||
Loading…
Reference in New Issue
Block a user