fix: set the USER for the blsq image; remove g+w on the wrap_up.py & … #164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build images | |
on: | |
push: | |
branches: [main] | |
release: | |
types: [ published ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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/v0.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@v6 | |
with: | |
load: true | |
push: true | |
context: images/base | |
tags: | | |
blsq/openhexa-base-environment:${{ steps.version.outputs.number || 'main' }} | |
blsq/openhexa-base-environment:latest | |
- name: Build and push "legacy" image | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
context: images/legacy | |
tags: | | |
blsq/openhexa-legacy-environment:${{ steps.version.outputs.number || 'main' }} | |
blsq/openhexa-legacy-environment:latest | |
- name: Build and push "blsq" image | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
context: images/blsq | |
tags: | | |
blsq/openhexa-blsq-environment:${{ steps.version.outputs.number || 'main' }} | |
blsq/openhexa-blsq-environment:latest |