Should fix pipeline
This commit is contained in:
@@ -53,14 +53,13 @@ jobs:
|
|||||||
- build-and-push-images
|
- build-and-push-images
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Create and use env file
|
- name: Create and use env file
|
||||||
run: |
|
run: |
|
||||||
echo "Creating env file as: $(whoami) in: $(pwd)"
|
echo "Creating env file as: $(whoami) in: $(pwd)"
|
||||||
echo "GIT_COMMIT_HASH=${{ github.sha }}" >> .env
|
echo "GIT_COMMIT_HASH=${{ github.sha }}" >> .env
|
||||||
ls -la .env
|
ls -la .env
|
||||||
source .env
|
|
||||||
|
|
||||||
- name: Docker Stack deploy
|
- name: Docker Stack deploy
|
||||||
uses: cssnr/stack-deploy-action@v1
|
uses: cssnr/stack-deploy-action@v1
|
||||||
@@ -69,4 +68,5 @@ jobs:
|
|||||||
file: docker-compose.yml
|
file: docker-compose.yml
|
||||||
host: 192.168.1.105
|
host: 192.168.1.105
|
||||||
user: root
|
user: root
|
||||||
ssh_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
|
ssh_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
|
||||||
|
env_file: .env
|
||||||
Reference in New Issue
Block a user