Skip to content

Commit

Permalink
workflow updates
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
slominskir committed Apr 1, 2024
1 parent 4757f56 commit 89e773f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 63 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CD

on:
push:
paths:
- 'VERSION'

jobs:
release:
uses: jeffersonlab/java-workflows/.github/workflows/gh-release.yml@main
with:
files: build/libs/cnm.war
secrets: inherit

docker_publish:
needs:
- release
uses: jeffersonlab/container-workflows/.github/workflows/docker-publish.yml@main
with:
semvertag: ${{ needs.release.outputs.semvertag }}
secrets: inherit
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: CI
on:
push:
branches: [ main ]
paths-ignore:
- 'VERSION'
tags-ignore:
- "v*.*.*"
pull_request:
branches: [ main ]
workflow_dispatch:
Expand All @@ -11,16 +15,6 @@ permissions:
contents: read

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Build with Gradle
run: ./gradlew build
build:
uses: jeffersonlab/java-workflows/.github/workflows/unit-ci.yml@main

16 changes: 5 additions & 11 deletions .github/workflows/docker-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ on:
- .github/workflows/docker-description.yml
jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: jeffersonlab/${{ github.event.repository.name }}
short-description: ${{ github.event.repository.description }}
uses: jeffersonlab/container-workflows/.github/workflows/docker-description.yml@main
with:
repository: jeffersonlab/${{ github.event.repository.name }}
description: ${{ github.event.repository.description }}
secrets: inherit
39 changes: 0 additions & 39 deletions .github/workflows/docker-publish.yml

This file was deleted.

0 comments on commit 89e773f

Please sign in to comment.