Skip to content

Commit bcb24d2

Browse files
committed
chore: Update Dependabot schedule to weekly and add Dockerhub publish workflow
1 parent 099dfa3 commit bcb24d2

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ updates:
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")
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)