Merge branch 'master' of https://github.com/rgcgithub/regenie #49
Workflow file for this run
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: Docker Image CI | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
env: | |
REGISTRY: docker.pkg.github.com | |
REPO_NAME: ${{ github.repository }} | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout repository | |
uses: actions/checkout@v3 | |
- | |
name: Read VERSION file | |
id: getversion | |
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT | |
#run: echo "::set-output name=version::$(cat VERSION)" | |
- name: Build and push image to Docker | |
run: | | |
IMAGE_NAME="docker.pkg.github.com/${{ env.REPO_NAME }}/regenie:v${{ steps.getversion.outputs.version }}.gz" | |
echo "${{ secrets.GH_PAT }}" | docker login https://docker.pkg.github.com -u ${GITHUB_ACTOR} --password-stdin | |
docker build -f Dockerfile_mkl \ | |
--build-arg BOOST_IO=1 \ | |
--build-arg LIB_INSTALL=libboost-iostreams-dev \ | |
-t $IMAGE_NAME . | |
docker push $IMAGE_NAME |