Skip to content

Update to Z2JH 3.3.7 #56

Update to Z2JH 3.3.7

Update to Z2JH 3.3.7 #56

Workflow file for this run

name: Build and push container images
# These triggers and image tags are designed for the following workflows:
#
# - Development: When a new commit is pushed to a branch.
#
# - Production: When a new release is tagged. The tag should be a version
# number of the form "{major}.{minor}{...}".
#
# The idea is that one pushes to a branch, tests it, then tags it.
on:
push:
branches:
- '*'
tags:
- '[0-9]+.[0-9]+*'
paths:
- k8s-hub/**
- sssd/**
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
image-name:
- k8s-hub
- sssd
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Set tags
id: meta
uses: docker/metadata-action@v4
with:
flavor: |
latest=false
images: |
hub.opensciencegrid.org/osg-jupyterhub/${{ matrix.image-name }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{date 'YYYYMMDD-HHmmss'}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log into Hub
uses: docker/login-action@v1
with:
registry: hub.opensciencegrid.org
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v2
with:
context: ${{ matrix.image-name }}
push: true
tags: ${{ steps.meta.outputs.tags }}