Skip to content

Commit

Permalink
build: building and pushing docker image to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Oct 1, 2022
1 parent 764b36a commit 46ab7f5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
JRELEASER_SLACK_WEBHOOK: ${{ secrets.JRELEASER_SLACK_WEBHOOK }}
JRELEASER_DOCKER_PASSWORD: ${{ secrets.JRELEASER_DOCKER_PASSWORD }}

- name: JReleaser output
if: always()
Expand All @@ -74,3 +73,23 @@ jobs:
out/jreleaser/trace.log
out/jreleaser/output.properties
out/jreleaser/release/CHANGELOG.md
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: jruaux/redis-kafka-connect

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY}}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
JRELEASER_SLACK_WEBHOOK: ${{ secrets.JRELEASER_SLACK_WEBHOOK }}
JRELEASER_DOCKER_PASSWORD: ${{ secrets.JRELEASER_DOCKER_PASSWORD }}

- name: Commit release version
run: |
Expand Down
13 changes: 0 additions & 13 deletions jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@ announce:
channel: '#field-engineering-announcements'
message: '🔗 Redis Kafka Connect {{projectVersion}} has been released! {{releaseNotesUrl}}'

packagers:
docker:
active: always
registries:
- serverName: DEFAULT
username: jruaux
repositoryName: jruaux
imageNames:
- 'jruaux/{{distributionName}}:{{tagName}}'
- 'jruaux/{{distributionName}}:latest'
labels:
'org.opencontainers.image.title': '{{distributionName}}'

distributions:
redis-redis-enterprise-kafka-5:
type: binary
Expand Down

0 comments on commit 46ab7f5

Please sign in to comment.