Tryfix pipeline
This commit is contained in:
@@ -55,12 +55,12 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create 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
|
||||||
chmod a+rwx .env
|
ls -la .env
|
||||||
ls -la
|
source .env
|
||||||
|
|
||||||
- name: Docker Stack deploy
|
- name: Docker Stack deploy
|
||||||
uses: cssnr/stack-deploy-action@v1
|
uses: cssnr/stack-deploy-action@v1
|
||||||
@@ -69,5 +69,4 @@ 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