From a8354e235b671671d5becda0e40e024a3ecdfd2b Mon Sep 17 00:00:00 2001 From: MohamadTahir Date: Thu, 2 Feb 2023 11:42:04 +0300 Subject: [PATCH 1/2] adds timeout input --- .github/workflows/workflow.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index c70fb47..89a0892 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -25,6 +25,10 @@ on: type: string default: reg.dev.krd required: false + timeout: + type: number + default: 10 + required: false runs-on: type: string @@ -43,7 +47,7 @@ jobs: build-push: name: Build and Push runs-on: ${{ fromJson(inputs.runs-on) }} - timeout-minutes: 10 + timeout-minutes: ${{ inputs.timeout }} outputs: tag: ${{ fromJson(steps.meta.outputs.json).tags[0] }} tags: ${{ steps.meta.outputs.tags }} From bc293af53c5e87f16545e67cb2418dd8b34075c5 Mon Sep 17 00:00:00 2001 From: Shakar bakr <56171149+5h4k4r@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:01:20 +0300 Subject: [PATCH 2/2] Update workflow.yaml Changes the default value of `runs-on` input variable to ubuntu-latest Update `docker/build-push-action` to v4 --- .github/workflows/workflow.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 89a0892..7650039 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -32,7 +32,7 @@ on: runs-on: type: string - default: "[ 'self-hosted', 'ubuntu-focal' ]" + default: "[ 'ubuntu-latest' ]" required: false secrets: @@ -82,7 +82,7 @@ jobs: password: ${{ secrets.password }} - name: Build Docker images - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: push: true file: ${{ inputs.file }}