Add deployment repo ping
@@ -57,6 +57,9 @@ jobs:
- run: go get github.com/gobuffalo/packr/v2/packr2@v2.7.1
- run: ./goreleaser --rm-dist --snapshot
+ - id: get-tag
+ run: git describe --tags
+
- name: Release Production Docker Image
if: github.ref == 'refs/heads/feature/git-actions'
# if: github.ref == 'refs/heads/master'
@@ -74,13 +77,29 @@ jobs:
repository: lbryio/lbrytv/lbrytv
tags: latest
tag_with_ref: true
+ tag_with_sha: true
- name: Release Dev Docker Image
- if: github.ref == 'refs/heads/feature/git-actions'
# if: github.ref == 'refs/heads/dev'
uses: docker/build-push-action@v1
with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
- repository: lbry/lbrytv
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ registry: docker.pkg.github.com
+ repository: lbryio/lbrytv/lbrytv
tags: latest-dev
+ tag_with_ref: true
+ tag_with_sha: true
+
+ - name: Ping deployment repo
+ if: github.ref == 'refs/heads/feature/git-actions'
+ uses: octokit/request-action@v2.x
+ id: deploy
+ with:
+ route: POST /repos/:repository/dispatches
+ repository: lbryio/lbrytv-deployment
+ event_type: deploy-lbrytv
+ client_payload: |
+ tag: ${{ github.sha }}
+ env:
+ GITHUB_TOKEN: ${{ secrets.DEPLOYMENT_REPO_TOKEN }}
