Update github-actions-builddockerfile.yml
Add GPU only build
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Build_Subgen_Dockerfile
|
name: Build_Subgen_Dockerfile_GPU
|
||||||
|
|
||||||
on:
|
on:
|
||||||
#push:
|
#push:
|
||||||
@@ -14,21 +14,6 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Set Calver Version
|
|
||||||
uses: Nelyx/action-calver@v1.0.0
|
|
||||||
id: setcalver
|
|
||||||
with:
|
|
||||||
default_branch: 'refs/heads/main'
|
|
||||||
format: 'YYYY.M.D'
|
|
||||||
version_prefix: ''
|
|
||||||
- name: Update version file
|
|
||||||
run: |
|
|
||||||
sed -i "s/subgen_version =.*/subgen_version = '${{ steps.setcalver.outputs.package_version }}'/" subgen/subgen.py
|
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "GitHub Actions"
|
git config --global user.name "GitHub Actions"
|
||||||
@@ -42,13 +27,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
|
||||||
name: Build and push CPU
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
file: ./Dockerfile.cpu
|
|
||||||
push: true
|
|
||||||
tags: mccloud/subgen:cpu
|
|
||||||
-
|
-
|
||||||
name: Build and push GPU
|
name: Build and push GPU
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user