Skip to content

Commit e47c07c

Browse files
committed
dockerfile compile script
fix
1 parent ba73716 commit e47c07c

File tree

3 files changed

+5
-60
lines changed

3 files changed

+5
-60
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- name: Build the Docker images
1414
if: startsWith(github.ref, 'refs/tags')
1515
run: |
16+
./containers/compile_dockerfile.sh
1617
docker build --no-cache -t quay.io/krkn-chaos/krkn containers/ --build-arg TAG=${GITHUB_REF#refs/tags/}
1718
docker tag quay.io/krkn-chaos/krkn quay.io/redhat-chaos/krkn
1819
docker tag quay.io/krkn-chaos/krkn quay.io/krkn-chaos/krkn:${GITHUB_REF#refs/tags/}
@@ -21,6 +22,7 @@ jobs:
2122
- name: Test Build the Docker images
2223
if: ${{ github.event_name == 'pull_request' }}
2324
run: |
25+
./containers/compile_dockerfile.sh
2426
docker build --no-cache -t quay.io/krkn-chaos/krkn containers/ --build-arg PR_NUMBER=${{ github.event.pull_request.number }}
2527
- name: Login in quay
2628
if: startsWith(github.ref, 'refs/tags')

containers/Dockerfile

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2+
cd "$SCRIPT_DIR"
13
export KRKNCTL_INPUT=$(cat krknctl-input.json|tr -d "\n")
4+
25
envsubst '${KRKNCTL_INPUT}' < Dockerfile.template > Dockerfile

0 commit comments

Comments
 (0)