Skip to content

Commit

Permalink
Add GA release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Aug 1, 2023
1 parent b82378a commit 81b5234
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
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

0 comments on commit 81b5234

Please sign in to comment.