Skip to content

⬆️ Svelte 5

⬆️ Svelte 5 #315

Workflow file for this run

name: Docker CI
on:
push:
branches: main
tags: v*
pull_request:
branches: main
jobs:
docker:
runs-on: ubuntu-latest
if: github.actor != 'nektos/act'
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
if: github.actor != 'dependabot[bot]'
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/login-action@v3
if: github.actor != 'dependabot[bot]'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: |
natoboram/leanish
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=tag
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}.{{patch}}
type=semver,pattern={{version}}
- uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
BUILD_BASE=