mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
feat:make image every push
Signed-off-by: Chen Kai <281165273grape@gmail.com>
This commit is contained in:
parent
e52ff169cf
commit
1a959fb056
2 changed files with 45 additions and 1 deletions
44
.github/workflows/image.yml
vendored
Normal file
44
.github/workflows/image.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: shisui latest image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ portal ]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
|
||||
push_image_to_github:
|
||||
name: Push Docker image to Github
|
||||
runs-on: ubuntu-latest
|
||||
permissions: write-all
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile.portal
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: shisui image
|
||||
name: shisui release image
|
||||
|
||||
on:
|
||||
release:
|
||||
|
|
|
|||
Loading…
Reference in a new issue