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