From 75c116163e6e7be55efde71388cf4ea4bcfa13a6 Mon Sep 17 00:00:00 2001 From: aceberg <1502200+aceberg@users.noreply.github.com> Date: Mon, 5 Sep 2022 19:32:19 +0700 Subject: [PATCH] Action for dev branch --- .github/workflows/dev-publish.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/dev-publish.yml diff --git a/.github/workflows/dev-publish.yml b/.github/workflows/dev-publish.yml new file mode 100644 index 0000000..d6baba4 --- /dev/null +++ b/.github/workflows/dev-publish.yml @@ -0,0 +1,35 @@ +name: Dev-to-docker.io + +on: + push: + branches: [ "dev" ] + paths: + - 'Dockerfile' + - 'src/**' + pull_request: + branches: [ "dev" ] + paths: + - 'Dockerfile' + - 'src/**' + +env: + IMAGE_NAME: watchyourlan + TAGS: dev + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Build and Push Docker Image to docker.io + uses: mr-smithers-excellent/docker-build-push@v5 + with: + image: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }} + tags: ${{ env.TAGS }} + registry: docker.io + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} \ No newline at end of file