Skip to content

v1.2.0

v1.2.0 #16

Workflow file for this run

name: Build environment image
on:
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
# 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: true
context: images/base
tags: |
blsq/openhexa-base-environment:${{ steps.version.outputs.number }}
blsq/openhexa-base-environment:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push "legacy" image
uses: docker/build-push-action@v4
with:
push: true
context: images/legacy
tags: |
blsq/openhexa-legacy-environment:${{ steps.version.outputs.number }}
blsq/openhexa-legacy-environment:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push "blsq" image
uses: docker/build-push-action@v4
with:
push: true
context: images/blsq
tags: |
blsq/openhexa-blsq-environment:${{ steps.version.outputs.number }}
blsq/openhexa-blsq-environment:latest
cache-from: type=gha
cache-to: type=gha,mode=max