Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoutigeWolf committed Jul 1, 2024
1 parent 70aa5ab commit f2be950
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- 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}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "portfolio",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit f2be950

Please sign in to comment.