This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3625 from trufflesuite/develop
chore(release): publish v7.4.2
- Loading branch information
Showing
55 changed files
with
935 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: "Docker Publish" | ||
description: "Builds and publishes a Docker image for the Ganache repo." | ||
inputs: | ||
VERSION: | ||
description: "The release version to be tagged to the Docker image, e.g., 4.0.1" | ||
required: true | ||
TAG: | ||
description: "The tag to be tagged to the Docker image, e.g., latest." | ||
required: true | ||
DOCKER_USERNAME: | ||
description: "Username to log in to Docker hub." | ||
required: true | ||
DOCKER_ACCESS_TOKEN: | ||
description: "Access token to log in to Docker hub." | ||
required: true | ||
GITHUB_TOKEN: | ||
description: "Github token used to log in to the container registry." | ||
required: true | ||
INFURA_KEY: | ||
description: "Infura key used to build Ganache within the Docker image." | ||
required: true | ||
runs: | ||
# "composite" means we are using yml (rather than js or docker) for our action | ||
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action | ||
using: "composite" | ||
steps: | ||
- name: Use npm 14 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Run installation | ||
run: npm ci | ||
shell: bash | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
username: ${{ inputs.DOCKER_USERNAME }} | ||
password: ${{ inputs.DOCKER_ACCESS_TOKEN }} | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
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 | ||
with: | ||
images: | | ||
trufflesuite/ganache | ||
ghcr.io/${{ github.repository}} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@0522dcd2bf084920c411162fde334a308be75015 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@91cb32d715c128e5f0ede915cd7e196ab7799b83 | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
file: ./src/packages/ganache/Dockerfile | ||
push: true | ||
tags: ${{ format('trufflesuite/ganache:{0}, trufflesuite/ganache:v{1}', inputs.TAG, inputs.VERSION) }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/arm64/v8,linux/amd64 | ||
build-args: | | ||
INFURA_KEY=${{ inputs.INFURA_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# validates that the PR title has a semantic commit message; ignores commits | ||
titleOnly: true | ||
# custom URL for the "Details" link (which appears next to the success/failure | ||
# message from the app) to be specified | ||
targetUrl: "https://github.com/trufflesuite/ganache/blob/develop/CONTRIBUTING.md#pull-requests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.