Skip to content

Commit 23035f8

Browse files
author
Julien Ruaux
committed
build: Added docker image publishing in release
1 parent 029fd22 commit 23035f8

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.github/workflows/early-access.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
out/jreleaser/trace.log
7474
out/jreleaser/output.properties
7575
out/jreleaser/release/CHANGELOG.md
76-
76+
7777
- name: Set up QEMU
7878
uses: docker/setup-qemu-action@v2
7979

@@ -90,4 +90,4 @@ jobs:
9090
uses: docker/build-push-action@v3
9191
with:
9292
push: ${{ github.event_name != 'pull_request' }}
93-
tags: jruaux/redis-kafka-connect:latest
93+
tags: jruaux/redis-kafka-connect:early-access

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
git commit -a -m "Releasing version $VERSION"
6565
git push origin master
6666
67-
6867
- name: JReleaser output
6968
if: always()
7069
uses: actions/upload-artifact@v2
@@ -74,8 +73,26 @@ jobs:
7473
out/jreleaser/trace.log
7574
out/jreleaser/output.properties
7675
76+
- name: Set up QEMU
77+
uses: docker/setup-qemu-action@v2
78+
79+
- name: Set up Docker Buildx
80+
uses: docker/setup-buildx-action@v2
81+
82+
- name: Login to DockerHub
83+
uses: docker/login-action@v2
84+
with:
85+
username: ${{ secrets.DOCKER_USERNAME }}
86+
password: ${{ secrets.DOCKER_PASSWORD }}
87+
88+
- name: Build and push
89+
uses: docker/build-push-action@v3
90+
with:
91+
push: ${{ github.event_name != 'pull_request' }}
92+
tags: jruaux/redis-kafka-connect:latest,jruaux/redis-kafka-connect:${{ github.event.inputs.version }}
93+
7794
- name: Deploy
7895
uses: peaceiris/actions-gh-pages@v3
7996
with:
8097
github_token: ${{ secrets.GIT_ACCESS_TOKEN }}
81-
publish_dir: ./target/generated-docs
98+
publish_dir: ./target/generated-docs

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Redis Kafka Connector (Source and Sink) by Redis.
1515

1616
== Documentation
1717

18-
Documentation is available at link:{documentation-url}[{documentation-url}]
18+
Documentation is available at link:{documentation-url}[{documentation-url}].
1919

2020
== Downloading
2121

0 commit comments

Comments
 (0)