49 lines
1,007 B
YAML
49 lines
1,007 B
YAML
name: Docker Build Dev
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
#
|
|
# Checkout
|
|
#
|
|
- name: checkout code
|
|
uses: actions/checkout@v2
|
|
#
|
|
# Setup QEMU
|
|
#
|
|
- name: Set up QEMU
|
|
id: qemu
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
image: tonistiigi/binfmt:latest
|
|
platforms: all
|
|
#
|
|
# Setup Buildx
|
|
#
|
|
- name: install buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
with:
|
|
install: true
|
|
#
|
|
# Login to Docker Hub
|
|
#
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
#
|
|
# Build
|
|
#
|
|
- name: build the image
|
|
run: |
|
|
docker build --push \
|
|
--tag hkotel/mealie:dev \
|
|
--platform linux/amd64,linux/arm64 .
|