Skip to content

fix: fixed a bug in creatura action_idle. #88

fix: fixed a bug in creatura action_idle.

fix: fixed a bug in creatura action_idle. #88

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches:
- 'main'
- 'multiarch'
env:
REGISTRY: ghcr.io
IMAGE: ghcr.io/ronoaldo/mercurio
jobs:
multiarch-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- dockerfile: Dockerfile
platforms: |-
linux/amd64
linux/arm64
fail-fast: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Run tests and export mods
run: make build test
- name: Publish mods for this build
uses: actions/upload-artifact@v3
with:
name: mods.tar.gz
path: /tmp/mods.tar.gz
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3.5.0
with:
images: ${{ env.IMAGE }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=r{{date 'YYYYMMDD'}}
- name: Print calculated Docker tags
id: build-tags-check
shell: bash
run: |
echo "${{ steps.meta.outputs.tags }}"
- name: Set up QEMU for multiarch builds
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to the Container registry
uses: docker/login-action@v1.10.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
file: ${{ matrix.dockerfile }}
platforms: ${{ matrix.platforms }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}