Skip to content

docker

docker #2

Workflow file for this run

name: Deploy Docker
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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}}