mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
37 lines
892 B
YAML
37 lines
892 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
-
|
|
name: Build the Docker image
|
|
run: docker build . --file Dockerfile --tag kroese/virtual-dsm:${{ secrets.MAJOR }}.${{ secrets.MINOR }}
|
|
-
|
|
name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Push to DockerHub
|
|
run: docker push kroese/virtual-dsm:${{ secrets.MAJOR }}.${{ secrets.MINOR }}
|
|
-
|
|
name: Update Minor version
|
|
uses: hmanzur/actions-set-secret@v2.0.0
|
|
with:
|
|
name: 'MINOR'
|
|
value: $((${{ secrets.MINOR }}+1))
|
|
repository: kroese/virtual-dsm
|
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
|
|
|
|
|