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

77 lines
1.9 KiB
YAML
Raw Normal View History

2020-05-11 18:51:32 -04:00
name: stable
2020-03-05 12:07:15 -05:00
on:
push:
tags:
2020-05-11 18:51:32 -04:00
- '*'
2020-03-05 12:07:15 -05:00
jobs:
2020-05-30 16:51:09 -04:00
tag:
2020-03-05 12:07:15 -05:00
runs-on: ubuntu-latest
steps:
-
name: Checkout
2020-04-28 08:39:26 -04:00
uses: actions/checkout@v2
2020-10-11 10:50:32 -04:00
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
2020-03-05 12:07:15 -05:00
-
name: Set up Docker Buildx
2020-10-11 10:50:32 -04:00
uses: docker/setup-buildx-action@v1
2020-03-05 12:07:15 -05:00
with:
2020-10-11 10:50:32 -04:00
version: latest
2020-03-05 12:07:15 -05:00
-
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: Get tag name
id: tag_name
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
-
name: Run Buildx
env:
TAG: ${{ steps.tag_name.outputs.TAG }}
run: |
docker buildx build \
--pull \
--push \
2020-05-30 16:51:09 -04:00
--tag mondedie/flarum:"${TAG}" \
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
.
stable:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
2020-10-11 10:50:32 -04:00
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
2020-05-30 16:51:09 -04:00
-
name: Set up Docker Buildx
2020-10-11 10:50:32 -04:00
uses: docker/setup-buildx-action@v1
2020-05-30 16:51:09 -04:00
with:
2020-10-11 10:50:32 -04:00
version: latest
2020-05-30 16:51:09 -04:00
-
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 \
--tag mondedie/flarum:stable \
2020-03-05 12:07:15 -05:00
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
2020-05-11 18:51:32 -04:00
.