Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dockerfile): support passing in custom checkout ref #63

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/dockerfile-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
description: Docker build context
type: string
default: .
checkout-ref:
description: Custom ref to check out
type: string
default: ''
secrets:
DOCKER_HUB_USERNAME:
DOCKER_HUB_PASSWORD:
Expand All @@ -24,6 +28,7 @@ jobs:
image: ${{ inputs.image }}
tag: ${{ inputs.tag }}
context: ${{ inputs.context }}
checkout-ref: ${{ inputs.checkout-ref }}
push: false
notify-failure: false
secrets: inherit
5 changes: 5 additions & 0 deletions .github/workflows/dockerfile-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
description: Docker build context
type: string
default: .
checkout-ref:
description: Custom ref to check out
type: string
default: ''
secrets:
DOCKER_HUB_USERNAME:
required: true
Expand All @@ -28,6 +32,7 @@ jobs:
image: ${{ inputs.image }}
tag: ${{ inputs.tag }}
context: ${{ inputs.context }}
checkout-ref: ${{ inputs.checkout-ref }}
push: true
notify-failure: true
secrets: inherit
6 changes: 6 additions & 0 deletions .github/workflows/dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
description: Docker build context
type: string
default: .
checkout-ref:
description: Custom ref to check out
type: string
default: ''
secrets:
DOCKER_HUB_USERNAME:
DOCKER_HUB_PASSWORD:
Expand All @@ -31,6 +35,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ inputs.checkout-ref }}

- name: Docker meta
id: meta
Expand Down
Loading