Skip to content

Commit

Permalink
Push docker images
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Nikitin <andrew.nikitin@cheqd.io>
  • Loading branch information
Andrew Nikitin committed May 20, 2022
1 parent 1675081 commit f91d86b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Download resolver Docker image
uses: actions/download-artifact@v3
with:
name: cheqd-did-resolver.tar

- name: Load resolver Docker image
run: docker load -i cheqd-did-resolver.tar

- name: Push cheqd-node image
run: |
docker tag cheqd-did-resolver ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }}
docker tag cheqd-did-resolver ghcr.io/${{ github.repository }}:latest
docker push ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }}
docker push ghcr.io/${{ github.repository }}:latest
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -42,23 +57,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Download resolver Docker image
# uses: actions/download-artifact@v3
# with:
# name: cheqd-did-resolver.tar
#
# - name: Load resolver Docker image
# run: docker load -i cheqd-did-resolver.tar
#

#
# - name: Push cheqd-node image
# run: |
# docker tag cheqd-did-resolver ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }}
# docker tag cheqd-did-resolver ghcr.io/${{ github.repository }}:latest
# docker push ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }}
# docker push ghcr.io/${{ github.repository }}:latest

# - uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
5 changes: 1 addition & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ builds:
- darwin
goarch:
- amd64
- arm64
dockers:
- image_templates: ["ghcr.io/cheqd/did-resolver:{{ .Version }}"]
dockerfile: docker/Dockerfile
- arm64

0 comments on commit f91d86b

Please sign in to comment.