Skip to content

Commit

Permalink
add the -u and --strategy flags to config-shim
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Nov 21, 2024
1 parent d3bb054 commit 140fa0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,19 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
- name: Build and push Docker image to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push Docker image to GitHub Container Registry
uses: docker/build-push-action@v5
if: startsWith(github.ref, 'refs/tags')
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion dockerbuild/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ php -v | head -n 1
if [[ -z "${APP_ID}" ]]; then
apache2ctl -k start -D FOREGROUND
else
config-shim --app $APP_ID --config $CONFIG_ID --env $ENV_ID apache2ctl -k start -D FOREGROUND
config-shim -u --strategy $STRATEGY_ID --app $APP_ID --config $CONFIG_ID --env $ENV_ID apache2ctl -k start -D FOREGROUND
fi

# endless loop with a wait is needed for the trap to work
Expand Down

0 comments on commit 140fa0d

Please sign in to comment.