Skip to content

Commit

Permalink
fix(github): context and file pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
ikr4-m committed Aug 15, 2024
1 parent 6da3a80 commit 98b23c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-image-broker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
build-sshd:
uses: ./.github/workflows/build-push.yml
with:
context: ./tunnel.Dockerfile
context: .
file: ./tunnel.Dockerfile
images_name: ghcr.io/${{ github.repository }}-sshd-tunnel
secrets: inherit
5 changes: 4 additions & 1 deletion .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
context:
type: string
default: .
file:
type: string
default: ./Dockerfile

jobs:
build:
Expand Down Expand Up @@ -46,7 +49,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v6
with:
context: ${{ inputs.folder_path }}
context: .
push: true
tags: ${{ steps.img_meta.outputs.tags }}
labels: ${{ steps.img_meta.outputs.labels }}

0 comments on commit 98b23c4

Please sign in to comment.