|
|
|
@ -24,6 +24,9 @@ jobs: |
|
|
|
env: |
|
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
|
|
|
|
|
|
|
- name: Get the tag name |
|
|
|
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV |
|
|
|
|
|
|
|
- name: Publish docker |
|
|
|
env: |
|
|
|
host: 'ubuntu@en.dtm.pub' |
|
|
|
@ -31,4 +34,4 @@ jobs: |
|
|
|
run: | |
|
|
|
echo "${{secrets.DEPLOY_KEY}}" > deploy_key |
|
|
|
chmod 600 ./deploy_key |
|
|
|
ssh -i deploy_key -o StrictHostKeyChecking=no ${{env.host}} 'cd ${{env.dest}}/dtm && git pull && sudo sh helper/build-repo.sh ${{github.event.release.tag_name}}' |
|
|
|
ssh -i deploy_key -o StrictHostKeyChecking=no ${{env.host}} 'cd ${{env.dest}}/dtm && git pull && sudo sh helper/build-repo.sh ${{env.TAG}}' |
|
|
|
|