Skip to content

Commit

Permalink
ci(convert): add missing substitute var (#445)
Browse files Browse the repository at this point in the history
"""
cache miss because layer definition was changed
error: layer needs to be rebuilt before publishing: alpine
error: exit status 1
"""

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha authored Mar 17, 2023
1 parent 997b771 commit 27b22d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/convert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
TEMPDIR=$(mktemp -d)
stacker convert --docker-file Dockerfile --output-file stacker.yaml --substitute-file stacker-subs.yaml
stacker build -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=alpine --substitute STACKER_VOL1="$TEMPDIR"
stacker publish -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=alpine --skip-tls --url docker://${REGISTRY_URL} --layer alpine --tag latest
stacker publish -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=alpine --substitute STACKER_VOL1="$TEMPDIR" --skip-tls --url docker://${REGISTRY_URL} --layer alpine --tag latest
rm -f stacker.yaml stacker-subs.yaml
stacker clean
cd $GITHUB_WORKSPACE
Expand Down

0 comments on commit 27b22d8

Please sign in to comment.