From 1de1015c5e7f0c0977f3fb74949bcb79977e0c52 Mon Sep 17 00:00:00 2001 From: Josh Bowen Date: Wed, 9 Feb 2022 11:57:23 -1000 Subject: [PATCH] add docker build gh action --- .github/workflows/docker-build.yml | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/docker-build.yml diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000000..d3d9d402a4 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -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