Merge pull request #108 from WSE-research/dependabot/pip/websocket-cl… #238
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 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag msu:latest | |
- name: Docker Login | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Tag latest docker image | |
if: startsWith(github.ref, 'refs/tags/') | |
run: docker tag msu:latest wseresearch/microservice-updater:latest | |
- name: Tag docker image version | |
if: startsWith(github.ref, 'refs/tags/') | |
run: docker tag msu:latest "wseresearch/microservice-updater:${{ github.ref_name }}" | |
- name: Push latest docker image | |
if: startsWith(github.ref, 'refs/tags/') | |
run: docker push wseresearch/microservice-updater:latest | |
- name: Push tagged version image | |
if: startsWith(github.ref, 'refs/tags/') | |
run: docker push "wseresearch/microservice-updater:${{ github.ref_name }}" |