Create manual_publish.yml
This commit is contained in:
parent
e3d694e63c
commit
2db16d69da
33
.github/workflows/manual_publish.yml
vendored
Normal file
33
.github/workflows/manual_publish.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: MANUAL Override Publish from release SHA to TAG
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
giteaPublishTag:
|
||||
description: 'Release TAG to publish TO on gitea; e.g. v4.1.5-alpha'
|
||||
required: true
|
||||
cercContainerTag:
|
||||
description: 'Container (SHA) to release-tag FROM'
|
||||
required: true
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
name: Pull SHA and add release-tag
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get the version
|
||||
id: vars
|
||||
run: |
|
||||
echo ::set-output name=sha::$(echo ${cercContainerTag:0:7})
|
||||
- name: Pull docker image by SHA
|
||||
run: docker pull git.vdb.to/cerc-io/eth-statediff-service/eth-statediff-service:${{steps.vars.outputs.sha}}
|
||||
- name: Tag docker image TAG
|
||||
run: docker tag git.vdb.to/cerc-io/eth-statediff-service/eth-statediff-service:${{steps.vars.outputs.sha}} git.vdb.to/cerc-io/eth-statediff-service/eth-statediff-service:${{giteaPublishTag}}
|
||||
- name: Docker Login
|
||||
run: echo ${{ secrets.GITEA_TOKEN }} | docker login https://git.vdb.to -u cerccicd --password-stdin
|
||||
- name: Docker Push Release Tag
|
||||
run: docker push git.vdb.to/cerc-io/eth-statediff-service/eth-statediff-service:${{giteaPublishTag}}
|
||||
- name: Docker Push LATEST Tag
|
||||
run: docker push git.vdb.to/cerc-io/eth-statediff-service/eth-statediff-service:latest
|
Loading…
Reference in New Issue
Block a user