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

测试Docker Build and Push v2

parent 3d12e8ca
...@@ -24,16 +24,19 @@ jobs: ...@@ -24,16 +24,19 @@ jobs:
steps: steps:
- name: 检出代码 - name: 检出代码
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: 构建 adguard 镜像 - name: 登陆到 DockerHub
uses: docker/build-push-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.HUB_USERNAME }} username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }} password: ${{ secrets.HUB_PASSWORD }}
path: ./adguard - name: 构建 adguard 镜像
dockerfile: ./adguard/Dockerfile uses: docker/build-push-action@v2
with:
context: ./adguard
file: ./adguard/Dockerfile
push: true
registry: docker.io registry: docker.io
repository: gzzchh/stacks repository: gzzchh/stacks:adguard
tags: adguard
sync-back: sync-back:
runs-on: ubuntu-latest 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