Skip to content

Commit

Permalink
Update pub_on_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanarm authored Dec 9, 2020
1 parent 940e5af commit 73d9a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pub_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@master
- name: Build image
# Собираем image и называем его так как указано в hub.docker т.е. login/repository:version
run: docker build -t $LOGIN/$NAME:${GITHUB_REF:11} -f Dockerfile . -e "DEMOCRATIA_TOKEN=${{ secrets.DEMOCRATIA_TOKEN }}"
run: docker build -t $LOGIN/$NAME:${GITHUB_REF:11} -f Dockerfile .
- name: Push image to docker.io
# Пушим образ в registry
run: docker push $LOGIN/$NAME:${GITHUB_REF:11}
Expand All @@ -49,4 +49,4 @@ jobs:
- name: Set tag to env
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11})
- name: Send webhook for deploy
run: "curl --silent --show-error --fail -X POST ${{ secrets.DEPLOYMENT_SERVER }} -H 'Authorization: ${{ secrets.DEPLOYMENT_TOKEN }}' -H 'Content-Type: application/json' -d '{\"owner\": \"${{ secrets.DOCKER_LOGIN }}\", \"repository\": \"${{ secrets.DOCKER_NAME }}\", \"tag\": \"${{ env.RELEASE_VERSION }}\", \"ports\": {\"8080\": 8080}}'"
run: "curl --silent --show-error --fail -X POST ${{ secrets.DEPLOYMENT_SERVER }} -H 'Authorization: ${{ secrets.DEPLOYMENT_TOKEN }}' -H 'Content-Type: application/json' -d '{\"owner\": \"${{ secrets.DOCKER_LOGIN }}\", \"repository\": \"${{ secrets.DOCKER_NAME }}\", \"tag\": \"${{ env.RELEASE_VERSION }}\", \"ports\": {\"8080\": 8080}, \"env\": {\"DEMOCRATIA_TOKEN\": \"${{ secrets.DEMOCRATIA_TOKEN }}\"}'"

0 comments on commit 73d9a66

Please sign in to comment.