diff --git a/.github/workflows/deploy b/.github/workflows/deploy new file mode 100644 index 00000000..2f83969a --- /dev/null +++ b/.github/workflows/deploy @@ -0,0 +1,23 @@ +name: Docker Image CI + +on: + push: + branches: + - 'master' +jobs: + build-container: + name: Build Docker container image + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Publish to Docker Hub + uses: docker/build-push-action@v2 + with: + push: true + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/wg:latest