Skip to content

Commit

Permalink
Added github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Sep 21, 2023
1 parent c7d0502 commit a6f27cf
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci-unwelcome-words.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
pull_request:

jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- name: Checkout tool
uses: actions/checkout@v3
with:
repository: exactpro-th2/ci-github-action
ref: master
token: ${{ secrets.PAT_CI_ACTION }}
path: ci-github-action
- name: Run CI action
uses: ./ci-github-action
with:
ref: ${{ github.sha }}
26 changes: 26 additions & 0 deletions .github/workflows/dev-java-publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Dev build and publish Docker image

on:
push:
branches-ignore:
- master
- version-*
- dependabot*
paths-ignore:
- README.md
# paths:
# - gradle.properties

jobs:
build-job:
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
with:
build-target: 'Docker'
runsOn: ubuntu-latest
gradleVersion: '7'
docker-username: ${{ github.actor }}
secrets:
docker-password: ${{ secrets.GITHUB_TOKEN }}



18 changes: 18 additions & 0 deletions .github/workflows/dev-release-java-publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and release Docker image.

on:
push:
tags:
- \d+.\d+.\d+-dev

jobs:
build:
uses: th2-net/.github/.github/workflows/compound-java.yml@main
with:
build-target: 'Docker'
runsOn: ubuntu-latest
gradleVersion: '7'
docker-username: ${{ github.actor }}
devRelease: true
secrets:
docker-password: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/java-publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build and release Docker image.

on:
push:
branches:
- master
- version-*
paths:
- gradle.properties

jobs:
build:
uses: th2-net/.github/.github/workflows/compound-java.yml@main
with:
build-target: 'Docker'
runsOn: ubuntu-latest
gradleVersion: '7'
docker-username: ${{ github.actor }}
secrets:
docker-password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a6f27cf

Please sign in to comment.