Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 2f1aa2b

Browse files
authored
Publish to GitHub package repository (#446)
Fixes #445
1 parent 83d68ff commit 2f1aa2b

File tree

3 files changed

+47
-7
lines changed

3 files changed

+47
-7
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Create and publish a Docker image
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: ${{ github.repository }}
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Log in to the Container registry
23+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
24+
with:
25+
registry: ${{ env.REGISTRY }}
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Extract metadata (tags, labels) for Docker
30+
id: meta
31+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
32+
with:
33+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34+
35+
- name: Build and push Docker image
36+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
37+
with:
38+
context: .
39+
push: true
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ The [project wiki](https://github.com/danecreekphotography/node-deepstackai-trig
5454

5555
## Supported Docker image tags
5656

57-
The following tags are available in the Docker repository:
57+
The following tags are available in the [repository](https://github.com/neilenns/ambientweather2mqtt/pkgs/container/ambientweather2mqtt):
5858

59-
| Tag name | Description |
60-
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
61-
| `latest` | The latest released build. This lags slightly behind `dev`. |
62-
| `dev` | The latest code as it is checked into the project's master branch. This may contain breaking changes that aren't documented yet. |
63-
| `version-<version>` | The specific [released version](https://github.com/danecreekphotography/node-deepstackai-trigger/releases), e.g. `version-1.5.0`. |
59+
| Tag name | Description |
60+
| ----------- | -------------------------------------------------------------------------------------------------------------------------- |
61+
| `latest` | The latest released build. |
62+
| `<version>` | The specific [released version](https://github.com/danecreekphotography/node-deepstackai-trigger/releases), e.g. `v1.5.0`. |

sampleConfiguration/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
secrets:
3030
- triggers
3131
- settings
32-
image: danecreekphotography/node-deepstackai-trigger:latest
32+
image: ghcr.io/neilenns/node-deepstackai-trigger:latest
3333
restart: always
3434
depends_on:
3535
- deepstack-ai

0 commit comments

Comments
 (0)