Skip to content

Commit

Permalink
Merge pull request #12 from jbowen93/jbowen93/gh-action
Browse files Browse the repository at this point in the history
add docker build gh action
  • Loading branch information
jbowen93 authored Feb 9, 2022
2 parents 4b89a8e + 1de1015 commit b9dfb41
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "docker-build"

on:
push:
branches:
- "main"
workflow_dispatch:

jobs:
docker-build:
runs-on: "ubuntu-latest"
permissions:
contents: write
packages: write
steps:
- name: "Checkout source code"
uses: "actions/checkout@v2"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: "Build"
run: "make build"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/celestiaorg/celestia-node:latest
file: docker/Dockerfile

0 comments on commit b9dfb41

Please sign in to comment.