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

dockerfile input: allow docker build --file to be customized #13

Merged
merged 6 commits into from
Nov 22, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add ghcr_with_dockerfile_in_subdir CI check
  • Loading branch information
macbre authored Nov 22, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 2845f20d8289736234185c5e072931fd8477186b
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -32,6 +32,26 @@ jobs:
docker pull ${IMAGE}
docker image inspect ${IMAGE} | jq '.[].Config.Labels' | grep "${GITHUB_SHA}"

ghcr_with_dockerfile_in_subdir:
runs-on: "ubuntu-20.04" # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

steps:
- uses: actions/checkout@v2

- name: Run an action
uses: ./
with:
image_name: "foo/bar-app"
dockerfile: "./foo/bar/Dockerfile"
context: "./foo"
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Make sure that an image has been built
env:
IMAGE: ghcr.io/foo/bar-app
run: |
docker images | grep ${IMAGE}

ghcr_and_docker_io:
runs-on: "ubuntu-20.04" # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on