Create workflowbuild_CPU
This commit is contained in:
29
.github/workflowbuild_CPU
vendored
Normal file
29
.github/workflowbuild_CPU
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Build_Subgen_Dockerfile_CPU
|
||||||
|
|
||||||
|
on:
|
||||||
|
#push:
|
||||||
|
# branches:
|
||||||
|
# - 'main'
|
||||||
|
# paths-ignore:
|
||||||
|
# - '**.md'
|
||||||
|
# - '**.yml'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3.0.0
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user