Skip to content

Commit

Permalink
Attempt at removing hardcoded image name from Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipeRamalho committed Jan 21, 2024
1 parent d14fccd commit 66da947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ jobs:
provenance: false
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
buildargs: IMAGE_NAME = ${{ env.IMAGE_NAME }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use an official Node.js runtime as the base image
FROM --platform=$BUILDPLATFORM node:20-alpine as build
LABEL org.opencontainers.image.source="https://github.com/CapyIT/WebTemplate"
LABEL org.opencontainers.image.source="https://github.com/"${IMAGE_NAME}

# Set the working directory in the container
WORKDIR /usr/src/app
Expand Down

0 comments on commit 66da947

Please sign in to comment.