Commit 16d3e297 authored by Li Mi's avatar Li Mi

测试Docker Build and Push v2

parent 3d12e8ca
......@@ -24,16 +24,19 @@ jobs:
steps:
- name: 检出代码
uses: actions/checkout@v2
- name: 构建 adguard 镜像
uses: docker/build-push-action@v1
- name: 登陆到 DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }}
path: ./adguard
dockerfile: ./adguard/Dockerfile
- name: 构建 adguard 镜像
uses: docker/build-push-action@v2
with:
context: ./adguard
file: ./adguard/Dockerfile
push: true
registry: docker.io
repository: gzzchh/stacks
tags: adguard
repository: gzzchh/stacks:adguard
sync-back:
runs-on: ubuntu-latest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment