From e2b27ec4f3337bd5041652247ab94be92690263d Mon Sep 17 00:00:00 2001 From: kaiot Date: Wed, 13 Jul 2022 18:19:48 +0300 Subject: [PATCH] Create deploy --- .github/workflows/deploy | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy 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