未验证 提交 2ba8f8b1 编写于 作者: LinuxSuRen's avatar LinuxSuRen 提交者: GitHub

Do not push dev docker iamge in a sperate action (#371)

上级 81ecc8d4
name: DevImage
on:
push:
branches:
- master
- tiny-dev-image
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Build
run: |
export PATH=$PATH:${PWD}/bin:$GOPATH/bin:/home/runner/go/bin
make clean go-bindata-download-linux tools init build-all test
- name: Upload darwin artifact
uses: actions/upload-artifact@v1.0.0
with:
name: darwin
path: bin/darwin/jcli
- name: Upload linux artifact
uses: actions/upload-artifact@v1.0.0
with:
name: linux
path: bin/linux/jcli
- name: Upload windows artifact
uses: actions/upload-artifact@v1.0.0
with:
name: windows
path: bin/windows/jcli.exe
- name: Push Image
env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
run: |
docker login --username surenpi --password ${DOCKER_HUB_TOKEN}
docker build . -t jenkinszh/jcli:dev -f Dockerfile-dev
docker push jenkinszh/jcli:dev
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册