mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
multi-arch support
This commit is contained in:
parent
a2eef6b73d
commit
3d12b36096
2 changed files with 39 additions and 7 deletions
46
.github/workflows/dockerbuild.dev.yml
vendored
46
.github/workflows/dockerbuild.dev.yml
vendored
|
@ -5,14 +5,46 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- cd/cd
|
- cd/cd
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-dev:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: checkout code
|
||||||
- name: Publish to Registry
|
uses: actions/checkout@v2
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
- name: install buildx
|
||||||
|
id: buildx
|
||||||
|
uses: crazy-max/ghaction-docker-buildx@v1
|
||||||
with:
|
with:
|
||||||
name: hkotel/mealie
|
version: latest
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
- name: login to docker hub
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
|
- name: build the image
|
||||||
|
run: |
|
||||||
|
docker buildx build --push \
|
||||||
|
--tag hkotel/mealie:dev \
|
||||||
|
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
||||||
|
|
||||||
|
# jobs:
|
||||||
|
# build-dev:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@master
|
||||||
|
# - name: Publish to Registry
|
||||||
|
# uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
|
# with:
|
||||||
|
# name: hkotel/mealie
|
||||||
|
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
# build-dev-arm:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# env:
|
||||||
|
# DOCKER_TARGET_PLATFORM: linux/arm/v7
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@master
|
||||||
|
# - name: Publish to Registry
|
||||||
|
# uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
|
# with:
|
||||||
|
# name: hkotel/mealie
|
||||||
|
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
0
.github/workflows/dockerbuild.yml
vendored
0
.github/workflows/dockerbuild.yml
vendored
Loading…
Add table
Add a link
Reference in a new issue