Skip to content

Re-add coffea casa centos 7 image #159

Re-add coffea casa centos 7 image

Re-add coffea casa centos 7 image #159

Workflow file for this run

name: Test docker images
on:
pull_request:
paths:
- docker/**
branches:
- master
workflow_dispatch:
env:
PROJECT: 'coffea-casa'
GITHUB_ACTIONS: 'true'
REGISTRY: 'hub.opensciencegrid.org'
jobs:
matrix-build:
strategy:
fail-fast: false
matrix:
image: [cc-base-ubuntu, cc-analysis-ubuntu, cc-base-centos7, cc-analysis-centos7]
# Keep this line in sync with gh actions @ coffea-dask repo
# python: [3.8, 3.9, '3.10']
#exclude:
# - image: cc7
# python: 3.8
name: ${{ matrix.image }}
runs-on: ubuntu-latest
steps:
- name: Fetch current date (with timestamp)
id: date
run: |
echo "::set-output name=date::$(date +"%Y-%m-%d_%H-%M-%S")"
- name: Check out code
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
version: latest
driver-opts: network=host
- name: Login to Harbor Hub
if: success() && github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: hub.opensciencegrid.org
username: ${{ secrets.HARBOR_USER }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build and push
uses: docker/[email protected]
with:
context: docker/
file: docker/Dockerfile.${{ matrix.image }}
push: ${{ github.event_name == 'push' }}
platforms: linux/amd64
tags: ${{ env.REGISTRY }}/coffea-casa/${{ matrix.image }}:${{ steps.date.outputs.date }}
build-args: |
TAG=${{ steps.date.outputs.date }}
PROJECT=${{ env.PROJECT }}
GITHUB_ACTIONS=${{ env.GITHUB_ACTIONS }}
REGISTRY=${{ env.REGISTRY }}