Skip to content

Commit

Permalink
Add nightly and snapshot publish tasks (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudChirat committed Dec 23, 2021
1 parent 16efc67 commit f9c47c0
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,58 @@ jobs:
env:
DB: oracle
DB_VERSION: 12.2
publish_docker_image:
runs-on: ubuntu-latest
needs:
[
oracle_test,
db2_test,
mariadb_tests,
mysql_tests,
postgres_tests,
jdk_tests,
]
# trigger job on merge only
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Push only for linux
- name: Build and push docker image
uses: docker/build-push-action@v2
with:
push: true
file: docker/linux/Dockerfile
tags: enioka/jqm:nightly
publish_snapshot:
runs-on: ubuntu-latest
needs:
[
oracle_test,
db2_test,
mariadb_tests,
mysql_tests,
postgres_tests,
jdk_tests,
]
# trigger job on merge only
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
- name: Set up Maven Central Repository
uses: actions/setup-java@v2
with:
java-version: 11
distribution: "zulu"
server-id: sonatype-nexus-snapshots
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
- name: Publish package
run: mvn deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 comments on commit f9c47c0

Please sign in to comment.