Skip to content

Commit

Permalink
Merge pull request #23 from meceware/dev
Browse files Browse the repository at this point in the history
v1.0.0.rc4
  • Loading branch information
meceware authored Jan 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 69b868c + 8d82dca commit 1befc95
Showing 3 changed files with 27 additions and 9 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -14,17 +14,34 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

permissions:
contents: read
packages: write
id-token: write

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update package visibility
uses: actions/github-script@v7
with:
script: |
const owner = context.repo.owner;
const repo = context.repo.repo;
const package_name = process.env.IMAGE_NAME.toLowerCase();
try {
await github.request('PATCH /user/packages/container/' + package_name.split('/')[1] + '/visibility', {
visibility: 'public'
});
} catch (error) {
console.log('Package may not exist yet or other error:', error);
}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -6,11 +6,6 @@ FROM base AS builder
WORKDIR /app
ENV NODE_ENV=production

# Add metadata about your image
LABEL org.opencontainers.image.source="https://github.com/meceware/wapy.dev"
LABEL org.opencontainers.image.description="Wapy.dev - Track, manage, and optimize your recurring expenses in one powerful dashboard"
LABEL org.opencontainers.image.licenses="MIT + Commons Clause"

# Copy source code
COPY . .

@@ -22,6 +17,11 @@ RUN npm run build
FROM base AS runner
WORKDIR /app

# Add metadata about your image
LABEL org.opencontainers.image.source="https://github.com/meceware/wapy.dev"
LABEL org.opencontainers.image.description="Wapy.dev - Track, manage, and optimize your recurring expenses in one powerful dashboard"
LABEL org.opencontainers.image.licenses="MIT + Commons Clause"

# Disable telemetry
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
"description": "Track, manage, and optimize your recurring expenses in one powerful and human readable dashboard. Never miss a payment again.",
"version": "1.0.0",
"private": true,
"repository": "https://github.com/meceware/wapy.dev.git",
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",

0 comments on commit 1befc95

Please sign in to comment.