docker-flarum/.github/workflows/build.yml

36 lines
855 B
YAML
Raw Normal View History

name: build
on:
push:
2020-04-28 08:39:26 -04:00
branches:
- master
schedule:
- cron: '0 19 1 * *'
jobs:
2020-04-28 08:39:26 -04:00
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
2020-04-28 08:39:26 -04:00
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
-
name: Dockerhub login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
-
name: Run Buildx
run: |
docker buildx build \
--pull \
--push \
2020-02-09 18:01:59 -05:00
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
--tag mondedie/flarum:latest .