Docker Image CI #3
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: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the Docker image | |
run: | | |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username michabirklbauer --password-stdin | |
docker build . --file Dockerfile --tag michabirklbauer/spectrallibraryexporter:latest | |
docker push michabirklbauer/spectrallibraryexporter:latest | |
GIT_SHA="$(git rev-parse --short HEAD)" | |
docker tag michabirklbauer/spectrallibraryexporter:latest michabirklbauer/spectrallibraryexporter:$GIT_SHA | |
docker push michabirklbauer/spectrallibraryexporter:$GIT_SHA |