muckitymuck
Posted on November 12, 2021
To push on a branch you want to target, make a workflow yml file and include:
on:
push:
branches: [prod]
You can add an env file to your build when you deploy via Github Actions and still protect the data in your Secrets.
First take your .env file and put in secrets with any name(here it is ENV_FILE).
Then add this to your workflow.yml in the build area:
- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
envkey_DEBUG: false
envkey_SECRET_KEY: ${{ secrets.ENV_FILE }}
file_name: .env
If in the course you get this error:
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?
Try these:
sudo groupadd docker
sudo usermod -aG docker ${USER}
sudo chmod 666 /var/run/docker.sock
π πͺ π
π©
muckitymuck
Posted on November 12, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.