Updated library & main.yaml
This commit is contained in:
parent
2666324fff
commit
7fa9536ddf
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@ -131,6 +131,8 @@ jobs:
|
|||||||
bskjon/mediaprocessing-reader:${{ github.sha }}
|
bskjon/mediaprocessing-reader:${{ github.sha }}
|
||||||
bskjon/mediaprocessing-reader:${{ steps.docker-tag.outputs.tag }}
|
bskjon/mediaprocessing-reader:${{ steps.docker-tag.outputs.tag }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build-pymetadata:
|
build-pymetadata:
|
||||||
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -142,15 +144,20 @@ jobs:
|
|||||||
- name: Check if pyMetadata has changed
|
- name: Check if pyMetadata has changed
|
||||||
id: check-pymetadata
|
id: check-pymetadata
|
||||||
run: |
|
run: |
|
||||||
if [[ $(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} pyMetadata/) ]]; then
|
if [[ "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||||
echo "::set-output name=changed::true"
|
echo "::set-output name=skip::false"
|
||||||
else
|
else
|
||||||
echo "::set-output name=changed::false"
|
if [[ $(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} pyMetadata/) ]]; then
|
||||||
exit 0
|
echo "::set-output name=skip::false"
|
||||||
|
else
|
||||||
|
echo "::set-output name=skip::true"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
- name: Build pyMetadata module
|
- name: Build pyMetadata module
|
||||||
id: build-pymetadata
|
id: build-pymetadata
|
||||||
|
if: steps.check-pymetadata.outputs.skip == 'false' # skip dette trinnet hvis pyMetadata ikke har endringer
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ steps.check-pymetadata.outputs.changed }}" == "true" || "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
if [[ "${{ steps.check-pymetadata.outputs.changed }}" == "true" || "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||||
cd pyMetadata
|
cd pyMetadata
|
||||||
@ -162,17 +169,19 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Generate Docker image tag
|
- name: Generate Docker image tag
|
||||||
|
if: steps.check-pymetadata.outputs.skip == 'false' # skip dette trinnet hvis pyMetadata ikke har endringer
|
||||||
id: docker-tag
|
id: docker-tag
|
||||||
run: echo "::set-output name=tag::$(date -u +'%Y.%m.%d')-$(uuidgen | cut -c 1-8)"
|
run: echo "::set-output name=tag::$(date -u +'%Y.%m.%d')-$(uuidgen | cut -c 1-8)"
|
||||||
|
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
|
if: steps.check-pymetadata.outputs.skip == 'false' # skip dette trinnet hvis pyMetadata ikke har endringer
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_NAME }}
|
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
if: (steps.build-pymetadata.outputs.job_skipped != 'true' && github.event_name == 'push') || github.event_name == 'workflow_dispatch'
|
if: steps.check-pymetadata.outputs.skip == 'false' # skip dette trinnet hvis pyMetadata ikke har endringer
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./pyMetadata
|
context: ./pyMetadata
|
||||||
|
|||||||
@ -23,7 +23,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha37")
|
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha38")
|
||||||
implementation("no.iktdev:exfl:0.0.4-SNAPSHOT")
|
implementation("no.iktdev:exfl:0.0.4-SNAPSHOT")
|
||||||
|
|
||||||
implementation("com.github.pgreze:kotlin-process:1.3.1")
|
implementation("com.github.pgreze:kotlin-process:1.3.1")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user