readme: fix image name (#6) #3
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: "tagged-release" | |
on: | |
push: | |
tags: | |
- "r*" | |
jobs: | |
publish-image: | |
name: "Publish Docker Image to Docker Hub" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Push image | |
run: | | |
cd cassandra-4.0.6 | |
IMAGE_NAME=shotover/cassandra-test:4.0.6-${GITHUB_REF/refs\/tags\//} | |
docker build -t $IMAGE_NAME . | |
docker push $IMAGE_NAME | |
cd ../cassandra-3.11.13 | |
IMAGE_NAME=shotover/cassandra-test:3.11.13-${GITHUB_REF/refs\/tags\//} | |
docker build -t $IMAGE_NAME . | |
docker push $IMAGE_NAME | |
cd ../cassandra-5.0-beta1 | |
IMAGE_NAME=shotover/cassandra-test:5.0-beta1-${GITHUB_REF/refs\/tags\//} | |
docker build -t $IMAGE_NAME . | |
docker push $IMAGE_NAME |