Skip to content

Commit

Permalink
Add protected tags to build
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Jul 13, 2023
1 parent 205b0d7 commit 7780803
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
uses: unb-libraries/dockworker-baseimage/.github/workflows/build-base-image.yaml@6.x
with:
image-name: ghcr.io/unb-libraries/drupal
protected-tags: '8.x-3.x,9.x-2.x,9.x-2.x-unblib,10.x-1.x,10.x-1.x-unblib'
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GH_CONTAINER_REGISTRY_TOKEN: ${{ secrets.GH_CONTAINER_REGISTRY_TOKEN }}
GH_CONTAINER_REGISTRY_USER: ${{ secrets.GH_CONTAINER_REGISTRY_USER }}

12 changes: 12 additions & 0 deletions build/scripts/pre-init.d/96_add_bad_bots.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh

# Update config values.
sed -i "s|APP_HOSTNAME|$APP_HOSTNAME|g" /etc/postfix/main.cf

# Use Mailhog for Local Development
if [ "$DEPLOY_ENV" = "local" ]; then
echo "Configuring postfix to use mailhog..."
sed -i "s/relayhost = .*/relayhost = mailhog:1025/g" /etc/postfix/main.cf
fi

postfix start

0 comments on commit 7780803

Please sign in to comment.