File tree Expand file tree Collapse file tree 6 files changed +347
-255
lines changed
Expand file tree Collapse file tree 6 files changed +347
-255
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ RUN apk --no-cache add \
1515 git
1616
1717COPY . .
18-
19- RUN git submodule update --init
2018RUN /bin/sh ./make_devel.sh
2119
2220# Runtime image
You can’t perform that action at this time.
0 commit comments