-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace tag workflow with testnet image workflow (#22)
- Loading branch information
Showing
2 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
name: Push Testnet Docker Image | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
dev: | ||
description: "Develop tag to push as testnet (e.g. develop-1736464855-git.6a0aa89)" | ||
required: true | ||
version: | ||
description: "Testnet version to use in the new image tag (e.g. v1.0.0-beta.13)" | ||
required: true | ||
|
||
jobs: | ||
tag_and_push_testnet_image: | ||
name: Tag and Push Testnet Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Promote Develop image to Testnet | ||
shell: bash | ||
run: | | ||
dev_tag="${{ inputs.dev }}" | ||
dev_image="ghcr.io/${{ github.repository }}/immutable-geth:$dev_tag" | ||
testnet_image="ghcr.io/${{ github.repository }}/immutable-geth:testnet-${{ inputs.version }}" | ||
docker pull "$dev_image" | ||
docker tag "$dev_image" $testnet_image" | ||
docker push "$testnet_image" |