Skip to content

Commit

Permalink
dockerfile compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
tsebastiani committed Dec 13, 2024
1 parent ba73716 commit c64d29e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 60 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- name: Build the Docker images
if: startsWith(github.ref, 'refs/tags')
run: |
./containers/compile_dockerfile.sh
docker build --no-cache -t quay.io/krkn-chaos/krkn containers/ --build-arg TAG=${GITHUB_REF#refs/tags/}
docker tag quay.io/krkn-chaos/krkn quay.io/redhat-chaos/krkn
docker tag quay.io/krkn-chaos/krkn quay.io/krkn-chaos/krkn:${GITHUB_REF#refs/tags/}
Expand Down
60 changes: 0 additions & 60 deletions containers/Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions containers/build.sh → containers/compile_dockerfile.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
export KRKNCTL_INPUT=$(cat krknctl-input.json|tr -d "\n")

envsubst '${KRKNCTL_INPUT}' < Dockerfile.template > Dockerfile

0 comments on commit c64d29e

Please sign in to comment.