Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
ci: update docker release action (#4030)
Browse files Browse the repository at this point in the history
Co-authored-by: MicaiahReid <micaiahreid@gmail.com>
  • Loading branch information
davidmurdoch and MicaiahReid authored Dec 21, 2022
1 parent 5fc653d commit da90ed5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/actions/docker-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,34 @@ runs:
shell: bash

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@f75d088332b07a08afadf6ac53c74509b9453f12
with:
username: ${{ inputs.DOCKER_USERNAME }}
password: ${{ inputs.DOCKER_ACCESS_TOKEN }}

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@f75d088332b07a08afadf6ac53c74509b9453f12
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ inputs.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@314ddf6d4a82333bf1bc7630399df41bf68eba09
with:
images: |
trufflesuite/ganache
ghcr.io/${{ github.repository}}
- name: Set up QEMU
uses: docker/setup-qemu-action@0522dcd2bf084920c411162fde334a308be75015
uses: docker/setup-qemu-action@38836d31bd1e0f8f29b8c7ad0412da32020f15b3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@91cb32d715c128e5f0ede915cd7e196ab7799b83
uses: docker/setup-buildx-action@39a1a82492fd1ad19af19d61b5f748e4cb6cd1af

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@175d02bffea74695e96b351069ac938b338802f9
with:
context: .
file: ./src/packages/ganache/Dockerfile
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ jobs:
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
# by specifying the tag of this version as the ref to checkout, we're
# making sure the version we just released to npm is being released to
# Docker.
ref: v${{ needs.release.outputs.VERSION }}
- name: Run Ganache's docker publish action
# we are running our local action, so point directly to a folder
# containing an `action.yml` file
Expand Down

0 comments on commit da90ed5

Please sign in to comment.