mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
refactor: Use environment variables
This commit is contained in:
@@ -101,8 +101,8 @@ jobs:
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
key: ${{ secrets.DEPLOY_KEY }}
|
||||
script: |
|
||||
docker pull ghcr.io/2martens/docker-nginx:${{ matrix.env }}
|
||||
docker service update --image ghcr.io/2martens/docker-nginx:${{ matrix.env }} nginx-proxy
|
||||
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.env }}
|
||||
docker service update --image ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.env }} nginx-proxy
|
||||
for f in ~/stack-config/*.yaml; do
|
||||
NAME=$(basename "$f" .yaml)
|
||||
docker stack deploy -c "$f" "$NAME"
|
||||
|
||||
Reference in New Issue
Block a user