mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: remove temp docker tag action (#9128)
This commit is contained in:
51
.github/workflows/docker-tag.yml
vendored
51
.github/workflows/docker-tag.yml
vendored
@ -1,51 +0,0 @@
|
||||
# Tags the given docker image as latest
|
||||
|
||||
name: docker-tag
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
dryRun:
|
||||
description: 'Whether or not to perform a dry run'
|
||||
required: true
|
||||
default: 'true'
|
||||
type: boolean
|
||||
tag:
|
||||
description: 'The tag to push as latest'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
env:
|
||||
REPO_NAME: ${{ github.repository_owner }}/reth
|
||||
IMAGE_NAME: ${{ github.repository_owner }}/reth
|
||||
OP_IMAGE_NAME: ${{ github.repository_owner }}/op-reth
|
||||
CARGO_TERM_COLOR: always
|
||||
DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/reth
|
||||
OP_DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/op-reth
|
||||
DOCKER_USERNAME: ${{ github.actor }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build and push
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Log in to Docker
|
||||
run: |
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin
|
||||
- name: Tag reth image as "latest"
|
||||
run: |
|
||||
docker pull ghcr.io/paradigmxyz/reth:${{ inputs.tag }}
|
||||
docker tag ghcr.io/paradigmxyz/reth:${{ inputs.tag }} ghcr.io/paradigmxyz/reth:latest
|
||||
- name: Tag op-reth image as "latest"
|
||||
run: |
|
||||
docker pull ghcr.io/paradigmxyz/op-reth:${{ inputs.tag }}
|
||||
docker tag ghcr.io/paradigmxyz/op-reth:${{ inputs.tag }} ghcr.io/paradigmxyz/op-reth:latest
|
||||
- name: Push all tags
|
||||
if: ${{ !inputs.dryRun }}
|
||||
run: |
|
||||
docker image push --all-tags ghcr.io/paradigmxyz/op-reth
|
||||
docker image push --all-tags ghcr.io/paradigmxyz/reth
|
||||
Reference in New Issue
Block a user