Skip to content

Commit d57c260

Browse files
author
Abdul Rabbani
committed
Combine build and push
1 parent 17d272d commit d57c260

File tree

2 files changed

+17
-50
lines changed

2 files changed

+17
-50
lines changed

.github/workflows/on-master.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,26 @@ on:
33
release:
44
types: [published]
55
jobs:
6+
build:
7+
name: Run docker build and publish
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Run docker build
12+
run: docker build -t vulcanize/go-ethereum -f Dockerfile .
13+
- name: Get the version
14+
id: vars
15+
run: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
16+
- name: Tag docker image
17+
run: docker tag vulcanize/go-ethereum docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
18+
- name: Docker Login
19+
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
20+
- name: Docker Push
21+
run: docker push docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
622
push_to_registries:
723
name: Publish assets to Release
824
runs-on: ubuntu-latest
25+
needs: build
926
steps:
1027
- name: Get the version
1128
id: vars

0 commit comments

Comments
 (0)