Skip to content

fix version generation #47

fix version generation

fix version generation #47

Workflow file for this run

name: Build and Publish
on:
push:
tags: ['*']
branch:
- main
jobs:
build:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker.io registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image and push to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/riscv64,linux/s390x,linux/ppc64le
push: true
build-args: VERSION=${{github.ref_name}}
tags: |
wollomatic/container-hoster:latest
wollomatic/container-hoster:${{github.ref_name}}