Skip to content

v1.3.7

v1.3.7 #75

Workflow file for this run

name: Build images
on:
push:
branches: [main]
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
# see https://github.com/docker/build-push-action
steps:
# Setup (see https://github.com/docker/build-push-action)
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Store version number (on release)
id: version
if: ${{ github.event_name == 'release' }}
# GITHUB_REF looks like "refs/tags/0.3.1" - we need to extract the actual version without the v prefix
run: echo "number=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
# Build all images
- name: Build and push "base" image
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name == 'release' }}
context: images/base
tags: |
blsq/openhexa-base-environment:${{ steps.version.outputs.number || 'main' }}
blsq/openhexa-base-environment:latest
cache-from: type=registry,ref=blsq/openhexa-base-environment:buildcache
cache-to: type=registry,ref=blsq/openhexa-base-environment:buildcache,mode=max
- name: Build and push "legacy" image
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name == 'release' }}
context: images/legacy
tags: |
blsq/openhexa-legacy-environment:${{ steps.version.outputs.number || 'main' }}
blsq/openhexa-legacy-environment:latest
cache-from: type=registry,ref=blsq/openhexa-legacy-environment:buildcache
cache-to: type=registry,ref=blsq/openhexa-legacy-environment:buildcache,mode=max
- name: Build and push "blsq" image
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name == 'release' }}
context: images/blsq
tags: |
blsq/openhexa-blsq-environment:${{ steps.version.outputs.number || 'main' }}
blsq/openhexa-blsq-environment:latest
cache-from: type=registry,ref=blsq/openhexa-blsq-environment:buildcache
cache-to: type=registry,ref=blsq/openhexa-blsq-environment:buildcache,mode=max