Skip to content

Commit c2968c2

Browse files
Update README and configuration files for initial setup and CI/CD
1 parent 7ecdbb7 commit c2968c2

4 files changed

Lines changed: 64 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
version: 2
6+
updates:
7+
- package-ecosystem: "npm" # See documentation for possible values
8+
directory: "/" # Location of package manifests
9+
assignees: ["renatodellosso"]
10+
schedule:
11+
day: "monday"
12+
interval: "weekly"
13+
commit-message:
14+
prefix: "[npm]"

.github/workflows/cd.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CD
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- main
9+
10+
permissions:
11+
packages: write
12+
13+
jobs:
14+
build_and_push:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
22+
23+
- name: Build and export
24+
uses: docker/build-push-action@v6
25+
env:
26+
DOCKER_BUILD_SUMMARY: false
27+
with:
28+
tags: ghcr.io/decatur-robotics/gearbox:latest
29+
outputs: type=docker,dest=/tmp/gearbox.tar
30+
context: . # Needed for Docker to find files made during the workflow
31+
32+
- name: Load image
33+
run: |
34+
docker load --input /tmp/gearbox.tar
35+
docker image ls -a
36+
37+
- name: Sign in to GHCR
38+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u decatur-robotics --password-stdin
39+
40+
- name: Push to GHCR
41+
run: docker push ghcr.io/decatur-robotics/gearbox:latest

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# NPM Package Template
22

3+
To get started, use this repo as a template and do the following:
4+
5+
- Update the details in package.json
6+
- Update the assignees in .github/dependabot.yml
7+
38
NPM Package Template © 2024 by Decatur Robotics is licensed under CC BY 4.0

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"license": "CC0 1.0",
77
"repository": {
88
"type": "git",
9-
"url": ""
9+
"url": "https://github.com/Decatur-Robotics/npm-package-template"
10+
},
11+
"publishConfig": {
12+
"registry": "https://npm.pkg.github.com"
1013
}
1114
}

0 commit comments

Comments
 (0)