mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
Create build.yml
This commit is contained in:
parent
3803a5cf54
commit
85e1b65a8f
33
.github/workflows/build.yml
vendored
Normal file
33
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
-
|
||||
name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag kroese/virtual-dsm:latest --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 }} && docker push kroese/virtual-dsm:latest
|
||||
-
|
||||
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 }}
|
Loading…
Reference in New Issue
Block a user