Skip to content

Commit

Permalink
Replace tag workflow with testnet image workflow (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad authored Jan 12, 2025
1 parent 6a0aa89 commit d908903
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/tag.yaml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/testnet.yaml
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"

0 comments on commit d908903

Please sign in to comment.