zenith-wallet-web/.gitea/workflows/docker-image.yml
Nabarun 847359fb6d Add CI for publishing docker image (#5)
Part of https://www.notion.so/Implement-stacks-1b5a6b22d472806a82f5dafed6955138

Reviewed-on: LaconicNetwork/zenith-wallet-web#5
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2025-07-13 10:48:20 +00:00

30 lines
1.3 KiB
YAML

name: Publish wallet docker image on release
on:
release:
types: [published]
jobs:
build:
name: Run docker build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run docker build
run: docker build -t cerc/zenith-wallet-web -f stack/stack-orchestrator/container-build/cerc-zenith-wallet-web/Dockerfile .
- name: Get the version
id: vars
run: |
echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})
- name: Tag docker image
run: docker tag cerc/zenith-wallet-web git.vdb.to/laconicnetwork/cerc/zenith-wallet-web:${{steps.vars.outputs.sha}}
- name: Tag docker image
run: docker tag git.vdb.to/laconicnetwork/cerc/zenith-wallet-web:${{steps.vars.outputs.sha}} git.vdb.to/laconicnetwork/cerc/zenith-wallet-web:${{steps.vars.outputs.tag}}
- name: Docker Login
run: echo ${{ secrets.CICD_PUBLISH_TOKEN }} | docker login https://git.vdb.to -u laconiccicd --password-stdin
- name: Docker Push
run: docker push git.vdb.to/laconicnetwork/cerc/zenith-wallet-web:${{steps.vars.outputs.sha}}
- name: Docker Push TAGGED
run: docker push git.vdb.to/laconicnetwork/cerc/zenith-wallet-web:${{steps.vars.outputs.tag}}