diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 300d13a..41d119b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -11,6 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag portfolio + - name: Get NPM version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.3.1 + + - uses: actions/checkout@v4 + + - name: Build the Docker image + run: docker build . --file Dockerfile --tag portfolio:${{ steps.package-version.outputs.current-version}} + + - name: Build and push to local registry + uses: docker/build-push-action@v6 + with: + push: true + tags: registry.zoutigewolf.dev/portfolio/portfolio:${{ steps.package-version.outputs.current-version}} \ No newline at end of file diff --git a/package.json b/package.json index 7d82468..1042b6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "portfolio", "private": true, - "version": "0.0.0", + "version": "1.0.0", "type": "module", "scripts": { "dev": "vite",