diff --git a/.github/workflows/build-tag.yml b/.github/workflows/build-tag.yml new file mode 100644 index 0000000..9104f12 --- /dev/null +++ b/.github/workflows/build-tag.yml @@ -0,0 +1,26 @@ +name: Build and push latest +on: + push: + tags: + - 'v*' +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: | + webstreamr/webstreamr:${{ github.sha }} + webstreamr/webstreamr:${{ github.ref_name }}