Skip to content

Commit

Permalink
Get docker image CI working
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Sep 9, 2024
1 parent 94f59a0 commit cf723e0
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
name: "Publish Docker"
on:
workflow_dispatch:
inputs:
isLatest:
description: 'Add latest tag'
default: 'true'
required: true
push:
tags:
- '*' # Push events to every tag

jobs:
publish:
runs-on: ubuntu-latest
env:
DOCKER_HUB_USERNAME: subquerynetwork
DOCKRE_HUB_PASSWORD: ${{ secrets.SQ_DOCKERHUB_TOKEN }}
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: subquerynetwork
password: ${{ secrets.DOCKERHUB_TOKEN }}
password: ${{ secrets.SQ_DOCKERHUB_TOKEN }}

- name: Build Docker
run: go run build/ci.go docker -image -manifest amd64,arm64 -upload subquerynetwork/geth

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: arm64,amd64
file: Dockerfile
# TODO bring back latest
tags: subquerynetwork/geth-client:${{ github.ref_name }}
build-args: |
COMMIT=${{github.sha}}
VERSION=${{github.ref_name}}
BUILDNUM=${{github.run_number}}

0 comments on commit cf723e0

Please sign in to comment.