mirror of
https://github.com/wger-project/wger.git
synced 2026-11-30 18:12:37 +01:00
36 lines
858 B
YAML
36 lines
858 B
YAML
name: Build and push base Docker images
|
|
|
|
on: workflow_dispatch
|
|
|
|
# on:
|
|
# schedule:
|
|
# - cron: '0 5 1 * *'
|
|
|
|
jobs:
|
|
path-context:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1.2.0
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1.6.0
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1.10.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build base image
|
|
uses: docker/build-push-action@v2.7.0
|
|
with:
|
|
context: .
|
|
push: true
|
|
file: extras/docker/base/Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: wger/base:latest,wger/base:2.1-dev
|