Skip to content

Commit

Permalink
Migrate azure release Ci to GH actions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora authored Oct 13, 2023
1 parent fc838e5 commit 807c20b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 36 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Publish

on:
push:
tags: ["**"]
branches: ["**"]

jobs:
build-and-publish:
name: Java Gradle Docker
uses: bakdata/ci-templates/.github/workflows/[email protected]
with:
docker-publisher: "bakdata"
secrets:
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-password: ${{ secrets.DOCKERHUB_TOKEN }}
github-username: ${{ secrets.GH_USERNAME }}
github-token: ${{ secrets.GH_TOKEN }}
ossrh-password: ${{ secrets.SONATYPE_OSSRH_PASSWORD }}
ossrh-username: ${{ secrets.SONATYPE_OSSRH_USERNAME }}
signing-key-id: ${{ secrets.SONATYPE_SIGNING_KEY_ID }}
signing-password: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
signing-secret-key-ring: ${{ secrets.SONATYPE_SIGNING_SECRET_KEY_RING }}
sonar-token: ${{ secrets.SONARCLOUD_TOKEN }}
sonar-organization: ${{ secrets.SONARCLOUD_ORGANIZATION }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
workflow_dispatch:
inputs:
release-type:
description: "The scope of the release (major, minor or patch)."
type: choice
required: true
default: patch
options:
- patch
- minor
- major

jobs:
java-gradle-release:
name: Java Gradle
uses: bakdata/ci-templates/.github/workflows/[email protected]
with:
release-type: "${{ inputs.release-type }}"
secrets:
github-email: "${{ secrets.GH_EMAIL }}"
github-username: "${{ secrets.GH_USERNAME }}"
github-token: "${{ secrets.GH_TOKEN }}"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ out/
.*
!.gitignore
!.gitlab-ci.yml
!.github
!.github
35 changes: 0 additions & 35 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 807c20b

Please sign in to comment.