variables: # 用户名/密码 放在Gitlab全局变量中,不要放在.yaml文件中
user: admin
pwd: Admin@1234
harbor: http://172.16.128.215:8080
image: 172.16.128.215:8080/hive/hellocat:1.0
stages:
- testing
- build
image: denoland/deno
testing:
stage: testing
tags:
- shell
script:
- echo "testing"
build:
stage: build
tags:
- shell
script:
- docker login -u $user -p $pwd $harbor
- docker build -t $image .
- echo "hello"
- docker push $image