Base Image #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Base Image | |
on: | |
# rebuild the base image each month on the 3rd at 5:17am | |
schedule: | |
- cron: '17 5 3 * *' | |
# or manually via button in UI | |
workflow_dispatch: | |
jobs: | |
base: | |
name: Create base image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: linux/amd64,linux/arm64/v8 | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: master | |
- name: Build base image | |
uses: docker/build-push-action@v6 | |
with: | |
file: ./.github/Dockerfile.base | |
platforms: linux/amd64,linux/arm64/v8 | |
push: true | |
tags: ghcr.io/digineo/texd:base | |
context: . |