Skip to content

Commit

Permalink
👷Add nightly docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
libsgh committed Aug 15, 2022
1 parent 962ad15 commit 2681794
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docker-build.yml
Expand Up @@ -31,6 +31,7 @@ jobs:
push: true
build-args: |
VERSION=${{ github.ref }}
ARG0=docker
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
42 changes: 42 additions & 0 deletions .github/workflows/nightly-docker-build.yml
@@ -0,0 +1,42 @@
name: PanIndex Nightly Docker Build
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build_docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
ref: dev
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: iicm/pan-index
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: iicm
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
build-args: |
VERSION=${{ github.ref }}
ARG0=nightly_docker
tags: iicm/pan-index:dev
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
3 changes: 2 additions & 1 deletion Dockerfile
@@ -1,12 +1,13 @@
FROM alpine:edge as builder
LABEL stage=go-builder
ARG VERSION
ARG ARG0
ENV GITHUB_REF=$VERSION
WORKDIR /app/
COPY ./ ./
RUN apk add --no-cache bash git curl go gcc musl-dev; \
curl -s -O 'https://raw.githubusercontent.com/libsgh/PanIndex-build-action/main/build.sh'; \
bash build.sh docker
bash build.sh ARG0

FROM alpine:edge
MAINTAINER libsgh
Expand Down

1 comment on commit 2681794

@vercel
Copy link

@vercel vercel bot commented on 2681794 Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pan-index-docs – ./docs

pan-index-docs.vercel.app
pan-index-docs-libsgh.vercel.app
pan-index-docs-git-dev-libsgh.vercel.app

Please sign in to comment.