use docker build
This commit is contained in:
parent
321aa393d2
commit
9aee94ee20
@ -11,7 +11,7 @@ runs:
|
|||||||
args: |
|
args: |
|
||||||
-c "echo 'bootJar {archiveFileName = \"app.jar\"}' >> build.gradle && \
|
-c "echo 'bootJar {archiveFileName = \"app.jar\"}' >> build.gradle && \
|
||||||
gradle build -x test -Dhttps.proxyHost=100.100.13.14 -Dhttps.proxyPort=8118 \
|
gradle build -x test -Dhttps.proxyHost=100.100.13.14 -Dhttps.proxyPort=8118 \
|
||||||
-Dhttp.proxyHost=100.100.13.14 -Dhttp.proxyPort=8118 --info"
|
-Dhttp.proxyHost=100.100.13.14 -Dhttp.proxyPort=8118 --no-daemon"
|
||||||
|
|
||||||
|
|
||||||
- name: create dockerfile
|
- name: create dockerfile
|
||||||
@ -27,12 +27,10 @@ runs:
|
|||||||
|
|
||||||
- name: build docker image
|
- name: build docker image
|
||||||
uses: docker://docker:git
|
uses: docker://docker:git
|
||||||
volumes: |
|
|
||||||
/var/run/user/1000/docker.sock:/var/run/docker.sock
|
|
||||||
with:
|
with:
|
||||||
entrypoint: "/bin/sh"
|
entrypoint: "/bin/sh"
|
||||||
args: |
|
args: |
|
||||||
-c 'env && docker ps && docker info && docker build -t ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
|
-c 'docker ps && docker info && docker build -t ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
|
||||||
echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \
|
echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \
|
||||||
docker login ${{vars.DOCKER_REGISTRY}} -u ${{vars.DOCKER_USER}} -p ${{vars.DOCKER_PASS}} && \
|
docker login ${{vars.DOCKER_REGISTRY}} -u ${{vars.DOCKER_USER}} -p ${{vars.DOCKER_PASS}} && \
|
||||||
docker push ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \
|
docker push ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \
|
||||||
|
Loading…
Reference in New Issue
Block a user