Skip to content

Prepare new ver

Prepare new ver #29

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: 'Docker metadata'
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
labels: |
maintainer=Peter Solymos
org.opencontainers.image.title=deps
org.opencontainers.image.description=Dependency management
org.opencontainers.image.vendor=Analythium
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build and push'
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
# tags: ghcr.io/${{ github.repository }}:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}