Skip to content

ci hadmin_store: use buildx instead #257

ci hadmin_store: use buildx instead

ci hadmin_store: use buildx instead #257

Workflow file for this run

name: haskell
on:
push:
tags:
- "*"
branches:
- release
pull_request:
env:
IMAGE_NAME: hstreamdb/haskell
jobs:
init:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check-if-skip.outputs.skip }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: check-if-skip
id: check-if-skip
uses: ./.github/actions/check-if-skip
with:
checksum-file: checksum/haskell.sha256sum
build:
needs: init
if: ${{ needs.init.outputs.skip == 'false' }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["810", "902", "904"]
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build & push images
run: |
HS_DIR='.' ./build.sh build_haskell${{ matrix.ghc }}
HS_DIR='.' ./build.sh build_haskell${{ matrix.ghc }}_rq
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}_rq
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}_manifest
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}_manifest_rq
if [ "${{ matrix.ghc }}" = "904" ]; then
echo "Push latest"
HS_DIR='.' ./build.sh push_haskell_latest_manifest 9.4.8
HS_DIR='.' ./build.sh push_haskell_latest_manifest_rq 9.4.8
fi