Skip to content

Commit

Permalink
add deployment stage
Browse files Browse the repository at this point in the history
  • Loading branch information
mput committed Feb 14, 2024
1 parent aee5394 commit 8208f6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,12 @@ jobs:
echo ${DOCKER_HUB_TOKEN} | docker login -u ${DOCKER_HUB_USER} --password-stdin
docker buildx build --push \
--build-arg VERSION=${version} \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
--platform linux/amd64 \
-t ${DOCKER_HUB_USER}/teledger:${ref} .
- name: deploy
if: ${{ github.ref == 'refs/heads/main' }}
env:
DEPLOYMENT_URL: ${{ secrets.DEPLOYMENT_URL }}
run: |
curl ${DEPLOYMENT_URL}

0 comments on commit 8208f6a

Please sign in to comment.