Skip to content

Commit

Permalink
fix: Deploy to GH Container Registry (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie authored Apr 13, 2024
1 parent 0b2d93b commit 246ca16
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 95 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ updates:
directory: '/'
schedule:
interval: 'daily'
ignore:
# ignore until https://github.com/airbnb/javascript/issues/2961 is fixed
- dependency-name: "eslint"
update-types: ["version-update:semver-major"]

- package-ecosystem: 'github-actions'
directory: '/'
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: somleng/sms-gateway
images: |
- somleng/sms-gateway
- ghcr.io/somleng/sms-gateway
tags: |
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
Expand Down
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function main() {
format: format.combine(
format.label({ label: "Somleng SMS Gateway" }),
format.timestamp(),
format.json()
format.json(),
),
transports: [new transports.Console()],
});
Expand Down Expand Up @@ -124,7 +124,7 @@ async function main() {
logger.debug(
"notifyDeliveryReceipt: ",
outboundQueue.get(deliveryReceipt.messageId).messageId,
deliveryReceipt
deliveryReceipt,
);

await client.notifyDeliveryReceipt({
Expand Down
Loading

0 comments on commit 246ca16

Please sign in to comment.