Skip to content

GitHub Actions Docker Pull Variable Substitution #27003

Answered by bordenit
bordenit asked this question in Actions
Discussion options

You must be logged in to vote

Forgot to export variables…

  • name: Digital Ocean Preparation - Pull Website Container From Docker Hub and Publish to Digital Ocean Droplet
    run: ssh -o “StrictHostKeyChecking=no” -i key.txt root@${{secrets.digitalOceanIP}} export dockerHubUsername=${{secrets.dockerHubUsername}}; export dockerHubContainerName=${{secrets.dockerHubContainerName}}; scripts/containermaint.sh

Now it works

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant