Compare commits
1 Commits
08b36b5dcb
...
13.0
Author | SHA1 | Date | |
---|---|---|---|
85ff333c66 |
14
action.yml
14
action.yml
@ -4,12 +4,12 @@ description: 'build docker image and push to simcu code'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: docker://node:20
|
||||
- uses: docker://node:18
|
||||
with:
|
||||
entrypoint: "/bin/bash"
|
||||
args: |
|
||||
-c "npm install && \
|
||||
npm run build -- --output-path=dist"
|
||||
npm run build -- --outputPath=dist"
|
||||
|
||||
- uses: docker://ubuntu:latest
|
||||
with:
|
||||
@ -25,8 +25,8 @@ runs:
|
||||
with:
|
||||
entrypoint: "/bin/sh"
|
||||
args: |
|
||||
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \
|
||||
echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \
|
||||
docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} && \
|
||||
docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \
|
||||
echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功'
|
||||
-c '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 }} && \
|
||||
echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功'
|
Reference in New Issue
Block a user