diff --git a/.github/workflows/docker-push-image.yml b/.github/workflows/docker-push-image.yml new file mode 100644 index 0000000..cc3679a --- /dev/null +++ b/.github/workflows/docker-push-image.yml @@ -0,0 +1,28 @@ +name: Push OpenSIPS CLI Images in Docker Hub + +on: + push: + repository_dispatch: + workflow_dispatch: + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v2.1.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: opensips/opensips-cli:latest