Skip to content

Rename tags

Rename tags #3

Workflow file for this run

name: Docker CI
on:
workflow_dispatch:
push:
workflow_run:
workflows: [Versioning]
types:
- completed
env:
GB_REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Assign defaultValue
run: |
version=$(grep -m1 '^lichess_bot_version: ' lib/versioning.yml | sed -n -e 's/^.*://p' | tr -d '[:space:]')
echo version="$version" >> "$GITHUB_ENV"
- name: show me docker tags.
run: |
echo "version:'"$version"'"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: build and push alpine image
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/Dockerfile
platforms: |
linux/amd64
linux/arm64
build-args: VARIANT=-alpine
push: true
tags: |
test:alpine
- name: build and push fat image
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: |
test:latest