Merge pull request #743 from trheyi/main
chore: Update Docker build workflow to include timeout settings
This commit is contained in:
commit
704f8b2dce
1 changed files with 3 additions and 22 deletions
25
.github/workflows/build-docker-internal.yml
vendored
25
.github/workflows/build-docker-internal.yml
vendored
|
|
@ -16,6 +16,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 120
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -40,29 +41,8 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_INTERNAL_USER }}
|
username: ${{ secrets.DOCKER_INTERNAL_USER }}
|
||||||
password: ${{ secrets.DOCKER_INTERNAL_TOKEN }}
|
password: ${{ secrets.DOCKER_INTERNAL_TOKEN }}
|
||||||
|
|
||||||
- name: Build Development
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: ./docker/development
|
|
||||||
platforms: linux/amd64
|
|
||||||
build-args: |
|
|
||||||
VERSION=${{ env.VERSION }}
|
|
||||||
ARCH=amd64
|
|
||||||
push: true
|
|
||||||
tags: hub.iqka.com/yaoapp/yao:${{ env.VERSION }}-amd64-dev
|
|
||||||
|
|
||||||
- name: Build Development Arm64
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: ./docker/development
|
|
||||||
platforms: linux/arm64
|
|
||||||
build-args: |
|
|
||||||
VERSION=${{ env.VERSION }}
|
|
||||||
ARCH=arm64
|
|
||||||
push: true
|
|
||||||
tags: hub.iqka.com/yaoapp/yao:${{ env.VERSION }}-arm64-dev
|
|
||||||
|
|
||||||
- name: Build Production
|
- name: Build Production
|
||||||
|
timeout-minutes: 60
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ./docker/production
|
context: ./docker/production
|
||||||
|
|
@ -74,6 +54,7 @@ jobs:
|
||||||
tags: hub.iqka.com/yaoapp/yao:${{ env.VERSION }}-amd64
|
tags: hub.iqka.com/yaoapp/yao:${{ env.VERSION }}-amd64
|
||||||
|
|
||||||
- name: Build Production Arm64
|
- name: Build Production Arm64
|
||||||
|
timeout-minutes: 60
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ./docker/production
|
context: ./docker/production
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue