Skip to content

Commit a459ecd

Browse files
committed
WF
1 parent 13c7eef commit a459ecd

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/docker-package.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
with:
7575
registry: ghcr.io
7676
username: ${{ github.actor }}
77-
password: ${{ secrets.TOKEN_GITHUB }}
77+
password: ${{ github.token }}
7878

7979
- name: Generate image metadata
8080
id: meta
@@ -87,6 +87,10 @@ jobs:
8787
type=raw,value=${{ steps.vars.outputs.version }}
8888
type=ref,event=tag
8989
type=sha,format=short
90+
labels: |
91+
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
92+
org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }}
93+
org.opencontainers.image.revision=${{ github.sha }}
9094
9195
- name: Build and push image package
9296
uses: docker/build-push-action@v6
@@ -100,3 +104,10 @@ jobs:
100104
RUN_TESTS=false
101105
cache-from: type=gha
102106
cache-to: type=gha,mode=max
107+
108+
- name: Show package location
109+
shell: bash
110+
run: |
111+
set -euo pipefail
112+
echo "Package: ghcr.io/${{ steps.vars.outputs.owner }}/${{ steps.vars.outputs.image }}"
113+
echo "Org packages page: https://github.com/orgs/${GITHUB_REPOSITORY_OWNER}/packages?repo_name=${GITHUB_REPOSITORY#*/}"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ COPY --chown=app:app --from=builder /home/app/nitrocraft/.output ./.output
5252
COPY --chown=app:app --from=builder /home/app/nitrocraft/package.json ./package.json
5353

5454
VOLUME /home/app/nitrocraft/images
55-
ENV NODE_ENV production
55+
ENV NODE_ENV=production
5656
CMD ["node", ".output/server/index.mjs"]
57-
EXPOSE 3000
57+
EXPOSE 3000

0 commit comments

Comments
 (0)