mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Build
This commit is contained in:
parent
a457d55a9b
commit
311b7e1692
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@ -2,7 +2,8 @@ name: Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
- '.gitignore'
|
- '.gitignore'
|
||||||
@ -35,23 +36,6 @@ jobs:
|
|||||||
--tag "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \
|
--tag "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \
|
||||||
--tag "ghcr.io/${{ github.repository }}:latest" \
|
--tag "ghcr.io/${{ github.repository }}:latest" \
|
||||||
--tag "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
|
--tag "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
|
||||||
-
|
|
||||||
name: Update Minor version
|
|
||||||
uses: hmanzur/actions-set-secret@v2.0.0
|
|
||||||
with:
|
|
||||||
name: 'MINOR'
|
|
||||||
value: $((${{ secrets.MINOR }}+1))
|
|
||||||
repository: ${{ github.repository }}
|
|
||||||
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
||||||
-
|
|
||||||
name: Create tag
|
|
||||||
uses: rickstaa/action-create-tag@v1
|
|
||||||
id: "tag_create"
|
|
||||||
if: ${{ false }}
|
|
||||||
with:
|
|
||||||
tag: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
|
|
||||||
tag_exists_error: false
|
|
||||||
message: "Release v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
|
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@ -75,6 +59,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker push "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" && \
|
docker push "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" && \
|
||||||
docker push "ghcr.io/${{ github.repository }}:latest"
|
docker push "ghcr.io/${{ github.repository }}:latest"
|
||||||
|
|
||||||
|
bump:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Update Minor version
|
||||||
|
uses: hmanzur/actions-set-secret@v2.0.0
|
||||||
|
with:
|
||||||
|
name: 'MINOR'
|
||||||
|
value: $((${{ secrets.MINOR }}+1))
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||||
|
|
||||||
mirror:
|
mirror:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user