File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 88 - package-ecosystem : " npm" # See documentation for possible values
99 directory : " /" # Location of package manifests
1010 schedule :
11- interval : " daily"
11+ interval : " weekly " # How often to check for updates (can be " daily", "weekly" or "monthly")
Original file line number Diff line number Diff line change 1+ # This is a manually triggered dockerhub build and publish
2+
3+ name : Publish to Dockerhub
4+
5+ # Controls when the action will run. Workflow runs when manually triggered using the UI
6+ # or API.
7+ on :
8+ workflow_dispatch :
9+ # Inputs the workflow accepts.
10+ inputs :
11+ version :
12+ # Friendly description to be shown in the UI instead of 'name'
13+ description : " Image Version"
14+
15+ # Default value if no value is explicitly provided
16+ default : " 1.0.0"
17+
18+ # Input has to be provided for the workflow to run
19+ required : true
20+
21+ jobs :
22+ build :
23+ name : Publish Docker Image
24+ runs-on : ubuntu-latest
25+
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+
30+ - name : Docker Hub Log in
31+ uses : docker/login-action@v3
32+ with :
33+ username : ${{ secrets.DOCKER_USERNAME }}
34+ password : ${{ secrets.DOCKER_PASSWORD }}
35+
36+ - name : Build and push image to Dockerhub
37+ run : |
38+ docker build -f Dockerfile -t genocs/genocs-library:${{ github.event.inputs.version }} -t genocs/genocs-library:latest .
39+ docker push genocs/genocs-library:${{ github.event.inputs.version }}
40+ docker push genocs/genocs-library:latest
You can’t perform that action at this time.
0 commit comments