Skip to content

Build base images

Build base images #171

Workflow file for this run

name: Build base images
on:
schedule:
- cron: "0 9 * * 1"
workflow_dispatch:
push:
branches: [main]
paths:
- "utils/base-images/**"
pull_request:
branches: [main]
paths:
- "utils/base-images/**"
env:
GOOS: linux
GO111MODULE: on
PLATFORMS: linux/amd64,linux/arm64
jobs:
build-and-push:
name: Build and push all images
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
images:
[
golang-builder,
golang,
python-slim,
node-slim,
mongodb,
memcached,
]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
file: utils/base-images/Dockerfile
platforms: ${{ env.PLATFORMS }}
target: ${{ matrix.images }}
tags: vhiveease/${{ matrix.images }}:latest