Compare commits

16 Commits
21.0 ... main

Author SHA1 Message Date
df45f8ba9c fix ci 2024-12-25 18:21:00 +08:00
4ad3a5a519 fix ci 2024-12-25 18:13:48 +08:00
fdb8159ab6 fix ci 2024-12-25 18:02:11 +08:00
9aee94ee20 use docker build 2024-12-11 06:09:36 +08:00
321aa393d2 use docker build 2024-12-11 06:04:57 +08:00
5dd538fbb6 use docker build 2024-12-11 06:01:00 +08:00
c8b93db337 use docker build 2024-12-11 05:58:29 +08:00
53edfe317e remove proxy 2024-12-11 05:36:51 +08:00
6ed7b99fd9 remove proxy 2024-12-11 05:35:52 +08:00
b70db03b17 remove proxy 2024-12-11 05:25:28 +08:00
338f3bf468 remove proxy 2024-12-11 05:13:45 +08:00
22d678ab22 remove proxy 2024-12-11 03:34:52 +08:00
c05dd83c88 test 2024-12-11 03:30:15 +08:00
82f5744234 test 2024-12-11 03:28:18 +08:00
e2c52c0c1e test 2024-12-11 03:27:46 +08:00
610f80d88d test 2024-12-11 03:22:23 +08:00

View File

@ -1,19 +1,17 @@
# action.yml
name: 'build docker image and push to code'
description: 'build docker image and push to simcu code'
name: "build docker image and push to code"
description: "build docker image and push to simcu code"
runs:
using: 'composite'
using: "composite"
steps:
- name: build app
uses: docker://gradle:jdk21
with:
entrypoint: "/bin/bash"
args: |
-c "export https_proxy=http://100.100.13.14:8118 && \
export http_proxy=http://100.100.13.14:8118 && \
gradle build && \
cd build/libs && \
mv $(ls *.jar) app.jar"
-c "echo 'bootJar {archiveFileName = \"app.jar\"}' >> build.gradle && \
gradle build -x test -Dhttps.proxyHost=100.100.13.14 -Dhttps.proxyPort=8118 \
-Dhttp.proxyHost=100.100.13.14 -Dhttp.proxyPort=8118 --no-daemon"
- name: create dockerfile
uses: docker://ubuntu:latest
@ -28,10 +26,13 @@ runs:
- name: build docker image
uses: docker://docker:git
env:
HTTPS_PROXY: http://100.100.13.14:8118
HTTP_PROXY: http://100.100.13.14:8118
with:
entrypoint: "/bin/sh"
args: |
-c 'docker build -t ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
-c 'docker image ls && docker build -t ${{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 push ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \