Skip to content

Merge pull request #98 from ValgulNecron/dev #11

Merge pull request #98 from ValgulNecron/dev

Merge pull request #98 from ValgulNecron/dev #11

name: Build & Publish Release Docker Image
on:
push:
branches:
- master
workflow_dispatch:
concurrency:
group: "release_docker"
cancel-in-progress: false
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64, linux/arm64/v8
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/kasuki:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kasuki:latestbuildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kasuki:latestbuildcache,mode=max
build-args: |
BUILDKIT_INLINE_CACHE=1