Merge pull request #164 from cdalvaro/minor_improvements_ci

Minor improvements CI
This commit is contained in:
Carlos D. Álvaro
2022-10-05 21:16:24 +02:00
committed by GitHub
4 changed files with 8 additions and 1 deletions

View File

@@ -123,7 +123,9 @@ jobs:
build-args: |
VCS_REF=${{ needs.metadata.outputs.vcs_ref }}
BUILD_DATE=${{ needs.metadata.outputs.created_on }}
cache-from: type=local,src=${{ env.CACHE_PATH }}
cache-from: |
type=local,src=${{ env.CACHE_PATH }}
ghcr.io/cdalvaro/docker-salt-master:latest
cache-to: type=local,dest=${{ env.CACHE_PATH }}
push: true
tags: ${{ needs.metadata.outputs.tags }}

View File

@@ -13,7 +13,9 @@ function check_for_config_changes()
while check_for_config_changes; do
log_info "Configuration changes detected. Reloading salt-master ..."
supervisorctl stop salt-api
supervisorctl stop salt-master
killall salt-master; killall -9 salt-master
supervisorctl start salt-master
supervisorctl start salt-api
done

View File

@@ -16,6 +16,8 @@ case "${1}" in
case "${1}" in
app:start)
salt-master --versions
log_info "Starting supervisord ..."
exec /usr/bin/supervisord -nc /etc/supervisor/supervisord.conf
;;

View File

@@ -90,6 +90,7 @@ function start_container_and_wait()
docker run --rm --detach --name "${CONTAINER_NAME}" \
--publish 4505:4505 --publish 4506:4506 \
--env PUID="$(id -u)" --env PGID="$(id -g)" \
--platform "${PLATFORM}" ${DOCKER_ARGS[@]} \
"${IMAGE_NAME}" || return 1