From c161a449c6ba14414f0e41fecfa6ec7b80a4fdb8 Mon Sep 17 00:00:00 2001 From: NewFututre Date: Mon, 3 Aug 2020 16:49:53 +0800 Subject: [PATCH] pr-docker-build --- .github/workflows/pr-docker.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pr-docker.yml diff --git a/.github/workflows/pr-docker.yml b/.github/workflows/pr-docker.yml new file mode 100644 index 0000000..8ba9a66 --- /dev/null +++ b/.github/workflows/pr-docker.yml @@ -0,0 +1,22 @@ +name: PR-Docker for preview and test + +on: + pull_request: + branches: + - master + +jobs: + docker-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build and push Docker images + uses: docker/build-push-action@v1.1.0 + with: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: docker.pkg.github.com + repository: newfuture/ddns/preview-ddns + tag_with_ref: true + add_git_labels: true \ No newline at end of file