mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -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:
|
||||
- cd/cd
|
||||
|
||||
|
||||
jobs:
|
||||
build-dev:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: install buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
with:
|
||||
name: hkotel/mealie
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
version: latest
|
||||
- name: login to docker hub
|
||||
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