This commit is contained in:
@@ -98,7 +98,7 @@ jobs:
|
||||
env:
|
||||
DOCKER_HOST: tcp://${{ secrets.SWARM_MANAGER_HOST }}:2376
|
||||
DOCKER_TLS_VERIFY: 1
|
||||
DOCKER_CERT_PATH: ~/.docker/swarm
|
||||
DOCKER_CERT_PATH: /tmp/swarm-certs
|
||||
run: |
|
||||
if [ "${{ inputs.version }}" == "latest" ]; then
|
||||
VERSION="latest"
|
||||
@@ -109,14 +109,14 @@ jobs:
|
||||
echo "Deploying version $VERSION to ${{ inputs.environment }}..."
|
||||
echo "Log level: ${{ inputs.logLevel }}"
|
||||
|
||||
mkdir -p ~/.docker/swarm
|
||||
echo "${{ secrets.SWARM_CA_PEM }}" > ~/.docker/swarm/ca.pem
|
||||
echo "${{ secrets.SWARM_CERT_PEM }}" > ~/.docker/swarm/cert.pem
|
||||
echo "${{ secrets.SWARM_KEY_PEM }}" > ~/.docker/swarm/key.pem
|
||||
chmod 600 ~/.docker/swarm/*.pem
|
||||
mkdir -p /tmp/swarm-certs
|
||||
echo "${{ secrets.SWARM_CA_PEM }}" > /tmp/swarm-certs/ca.pem
|
||||
echo "${{ secrets.SWARM_CERT_PEM }}" > /tmp/swarm-certs/cert.pem
|
||||
echo "${{ secrets.SWARM_KEY_PEM }}" > /tmp/swarm-certs/key.pem
|
||||
chmod 600 /tmp/swarm-certs/*.pem
|
||||
|
||||
ls -la ~/.docker/swarm/
|
||||
head -n 1 ~/.docker/swarm/ca.pem
|
||||
ls -la /tmp/swarm-certs/
|
||||
head -n 1 /tmp/swarm-certs/ca.pem
|
||||
|
||||
docker stack deploy \
|
||||
--with-registry-auth \
|
||||
|
Reference in New Issue
Block a user