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