Skip to content

Commit 1597ea3

Browse files
committed
Merge branch 'master' of https://github.com/madMAx43v3r/chia-plotter into windows-fury-road
2 parents ce511cc + b18f5c7 commit 1597ea3

File tree

6 files changed

+347
-255
lines changed

6 files changed

+347
-255
lines changed

.github/workflows/docker-build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags:
7+
- '*'
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
push:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set image name
17+
run: echo "IMAGE_ID=$(echo ${{ github.repository }} | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV
18+
- name: Docker meta
19+
id: meta
20+
uses: docker/metadata-action@v3
21+
with:
22+
# list of Docker images to use as base name for tags
23+
images: |
24+
${{ env.IMAGE_ID }}
25+
# generate Docker tags based on the following events/attributes
26+
tags: |
27+
type=schedule
28+
type=ref,event=branch
29+
type=ref,event=pr
30+
type=ref,event=tag
31+
type=sha
32+
- name: Set up QEMU
33+
uses: docker/setup-qemu-action@v1
34+
- name: Set up Docker Buildx
35+
id: buildx
36+
uses: docker/setup-buildx-action@v1
37+
- if: ${{ github.event_name != 'pull_request' }}
38+
name: Login to Docker Hub
39+
uses: docker/login-action@v1
40+
with:
41+
username: ${{ secrets.DOCKERHUB_USERNAME }}
42+
password: ${{ secrets.DOCKERHUB_TOKEN }}
43+
- name: Build and push
44+
id: docker_build
45+
uses: docker/build-push-action@v2
46+
with:
47+
push: ${{ github.event_name != 'pull_request' }}
48+
tags: ${{ steps.meta.outputs.tags }}
49+
labels: ${{ steps.meta.outputs.labels }}
50+
- name: Image digest
51+
run: echo ${{ steps.docker_build.outputs.digest }}

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ RUN apk --no-cache add \
1515
git
1616

1717
COPY . .
18-
19-
RUN git submodule update --init
2018
RUN /bin/sh ./make_devel.sh
2119

2220
# Runtime image

0 commit comments

Comments
 (0)