Skip to content

feat: Optimize Dockerfile #12

feat: Optimize Dockerfile

feat: Optimize Dockerfile #12

name: Build and Publish Docker Image
on:
push:
branches:
- main
paths:
- 'structurizr-cli-*.zip'
- 'Dockerfile'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/sebastienfi/structurizr-cli-with-bonus:latest