Skip to content

Groonga 13.0.4

Groonga 13.0.4 #41

Workflow file for this run

name: Build
on:
push:
branches:
- master
tags:
- "*"
pull_request:
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.id }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
id:
- "alpine"
- "debian"
steps:
- name: Parse ID
run: |
set -x
distribution=${{ matrix.id }}
case "${{ github.ref }}" in
refs/tags/*)
version=$(echo "${{ github.ref }}" | sed -e "s,^refs/tags/,,g")
;;
*)
version=latest
;;
esac
tags="groonga/groonga:${version}-${{ matrix.id }}"
if [ ${{ matrix.id }} = "debian" -a "${version}" = "latest" ]; then
tags="${tags},groonga/groonga:latest"
fi
echo "DISTRIBUTION=${distribution}" >> ${GITHUB_ENV}
echo "CONTEXT=./${distribution}" >> ${GITHUB_ENV}
echo "TAGS=${tags}" >> ${GITHUB_ENV}
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- uses: docker/setup-buildx-action@v1
id: buildx
- uses: docker/build-push-action@v2
id: docker_build
with:
# cache-from: type=gha
# cache-to: type=gha,mode=max
context: ${{ env.CONTEXT }}
push: true
tags: ${{ env.TAGS }}
- name: Image info
run: |
echo "ref: ${{ github.ref }}"
echo "tags: ${{ env.TAGS }}"
echo "digest: ${{ steps.docker_build.outputs.digest }}"