mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 07:10:09 +01:00
e437284980
* Version 4.1 Docker image tested. Fixed kinks in Docker image. Updated Dutch language Removed remaining "enable" parameter from Docker-related files Made the symlink system more reliable Improved updatability. Added multiplatform docker build (arm,arm64 and amd64) More verbose logging from the Docker image.
40 lines
951 B
YAML
40 lines
951 B
YAML
name: Docker-Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
inputs:
|
|
trigger-build:
|
|
description: 'Trigger a manual build and push'
|
|
default: 'true'
|
|
|
|
env:
|
|
DOCKER_IMAGE: donaldzou/wgdashboard
|
|
|
|
jobs:
|
|
docker_build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build and export (linux/amd64, linux/arm64, linux/arm/v7)
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ env.DOCKER_IMAGE }}:latest
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|