2020-10-16 15:17:08 +00:00
|
|
|
name: Docker Compose Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-10-20 19:15:08 +00:00
|
|
|
- main
|
2020-10-16 15:17:08 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Run docker build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-10-20 19:15:08 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Get the version
|
|
|
|
id: vars
|
|
|
|
run: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
|
|
|
|
- name: Run docker build
|
|
|
|
run: make docker-build
|
|
|
|
- name: Tag docker image
|
2022-12-21 15:59:07 +00:00
|
|
|
run: docker tag cerc-io/tx_spammer git.vdb.to/cerc-io/tx_spammer/tx_spammer:${{steps.vars.outputs.sha}}
|
2020-10-20 19:15:08 +00:00
|
|
|
- name: Docker Login
|
2022-12-21 15:59:07 +00:00
|
|
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://git.vdb.to -u cerc-io --password-stdin
|
2020-10-20 19:15:08 +00:00
|
|
|
- name: Docker Push
|
2022-12-21 15:59:07 +00:00
|
|
|
run: docker push git.vdb.to/cerc-io/tx_spammer/tx_spammer:${{steps.vars.outputs.sha}}
|
2020-10-20 19:15:08 +00:00
|
|
|
|