Skip to content

Update Dockerfile - trigger actions #8

Update Dockerfile - trigger actions

Update Dockerfile - trigger actions #8

name: Publish Docker Image
on:
push:
branches:
- 'v[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+-lsio'
paths-ignore:
- '**.md'
- 'compose/**'
- '.github/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout with submodules
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/svn-docker
tags: |
type=ref,event=branch
type=raw,value=latest,enable=true
flavor: |
latest=false
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}