Skip to content

Commit

Permalink
feat: publish latest image (#402)
Browse files Browse the repository at this point in the history
Publish latest image with release

Signed-off-by: jcriadomarco <[email protected]>
  • Loading branch information
javiercri authored Jun 30, 2023
1 parent 7373c4d commit eb95237
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
cd base-image && make build-image
- name: push-image
run: |
cd config-reloader && make push-image
cd config-reloader && make push-image && make push-latest
env:
TAG: ${{github.ref_name}}

Expand Down
8 changes: 5 additions & 3 deletions config-reloader/validate-from-dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ config-reloader \
--output-dir=${dest} \
--templates-dir=/templates \
--datasource=fs \
--exec-timeout=5 \
--fs-dir=${DATASOURCE_DIR} \
--fluentd-binary "/usr/local/bundle/bin/fluentd -p /fluentd/plugins"

rc=0

if [ -z "$(ls -A ${dest})" ]; then
echo -n "*** Error destination folder is empty $dest"
exit 1
fi
for st in $(find ${dest} -iname *.status); do
ns=$(basename ${st})
ns=${ns%%.status}
ns=${ns#ns-}
echo -n "*** Error for namespace '$ns': "
cat "${st}"
echo
echo
rc=1
done

Expand Down

0 comments on commit eb95237

Please sign in to comment.