Skip to content

Merge pull request #761 from thorrak/dev #141

Merge pull request #761 from thorrak/dev

Merge pull request #761 from thorrak/dev #141

Workflow file for this run

name: 'Build & Push to Docker Hub'
on:
push:
branches:
- master
# - dev
jobs:
buildx:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Set up QEMU
uses: docker/[email protected]
with:
platforms: all
-
name: Dockerhub login
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin
-
name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
with:
version: latest
-
name: Log in to GitHub Packages
run: echo ${{ secrets.GH_TOKEN }} | docker login ghcr.io -u ${{ secrets.GH_USER }} --password-stdin
-
name: Pull Fermentrack Image
run: docker pull jdbeeler/fermentrack:latest
-
name: Build dockerfile (arm32v7/amd64/arm64v8/i386)
run: |
docker buildx build \
--platform=linux/arm/v7,linux/amd64,linux/i386,linux/arm64/v8 \
--output "type=image,push=true" \
--file ./compose/production/django/Dockerfile . \
--tag jdbeeler/fermentrack:latest \
--cache-from ghcr.io/thorrak/fermentrack:latest \
--cache-to ghcr.io/thorrak/fermentrack:latest