Thomas E Lackey
4e9ff52729
Some checks failed
Pull Request Labeler / triage (pull_request) Failing after 6s
Dependency Review / dependency-review (pull_request) Failing after 1m34s
Lint / Run golangci-lint (pull_request) Successful in 3m24s
Semgrep / Scan (pull_request) Failing after 13s
Tests / cleanup-runs (pull_request) Failing after 4s
Lint / Run flake8 on python integration tests (pull_request) Successful in 3m51s
Run Gosec / Gosec (pull_request) Failing after 7m29s
Tests / test-unit-cover (pull_request) Failing after 5m30s
Tests / test-rpc (pull_request) Successful in 5m32s
Tests / test-importer (pull_request) Failing after 12m18s
Tests / sdk_tests (pull_request) Has been cancelled
29 lines
1.2 KiB
YAML
29 lines
1.2 KiB
YAML
name: Publish 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-io/laconicd -f 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-io/laconicd git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.sha}}
|
|
- name: Tag docker image
|
|
run: docker tag git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.sha}} git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.tag}}
|
|
- name: Docker Login
|
|
run: echo ${{ secrets.GITEA_TOKEN }} | docker login https://git.vdb.to -u cerccicd --password-stdin
|
|
- name: Docker Push
|
|
run: docker push git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.sha}}
|
|
- name: Docker Push TAGGED
|
|
run: docker push git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.tag}}
|
|
|