feat: push docker latest build for tags
This commit is contained in:
parent
177739e7cd
commit
0018ccc929
1 changed files with 26 additions and 0 deletions
26
.github/workflows/build-tag.yml
vendored
Normal file
26
.github/workflows/build-tag.yml
vendored
Normal file
|
|
@ -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 }}
|
||||
Loading…
Reference in a new issue