Skip to content

update hdf5 (#135)

update hdf5 (#135) #62

Workflow file for this run

name: Deploy docker image (ubuntu) to ghcr.io
on:
workflow_dispatch:
push:
branches:
- master
- 'release/**'
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
# export branch name to be available in the GA environment as: steps.extract_branch.outputs.branch
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
- name: Define tag name
shell: bash
run: |
BRANCH=${{ steps.extract_branch.outputs.branch }}
## use latest to follow docker conventions
if [[ "$BRANCH" == "master" ]]
then
BRANCH="latest"
fi
## Remove release/ from release branch name
echo "tag=$(echo ${BRANCH#release/})" >> $GITHUB_OUTPUT
id: tag_name
- name: Downcase REPO
run: echo "repo=$(echo ${GITHUB_REPOSITORY,,})" >> $GITHUB_OUTPUT
id: downcase_repo
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout to make context with dockerfiles available
uses: actions/checkout@v3
- name: Build and Push Docker Image
uses: docker/build-push-action@v3
with:
push: true # Will only build if this is not here
context: .
file: dockerfiles/Dockerfile
build-args: |
OPENMS_BRANCH=${{ steps.extract_branch.outputs.branch }}
OPENMS_VERSION=${{ steps.tag_name.outputs.tag }}
tags: |
ghcr.io/${{ steps.downcase_repo.outputs.repo }}:${{ steps.tag_name.outputs.tag }}