Changed image metadata update endpoint to have opusId parameter #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: profile-service build | |
on: | |
push: | |
branches: | |
- dev | |
- master | |
- feature/** | |
- hotfix/** | |
env: | |
TZ: Australia/Canberra | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Install and start elasticsearch | |
run: | | |
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.3-amd64.deb -o elasticsearch.deb | |
sudo dpkg -i --force-confnew elasticsearch.deb | |
sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch | |
sudo sh -c 'echo ES_JAVA_OPTS=\"-Xmx1g -Xms1g\" >> /etc/default/elasticsearch' | |
sudo service elasticsearch restart | |
- name: Install and start mongodb | |
uses: supercharge/mongodb-github-action@1.7.0 | |
with: | |
mongodb-version: '5.0' | |
- name: Read the profile-service version from the gradle.properties file | |
id: read_property | |
uses: christian-draeger/read-properties@1.1.0 | |
with: | |
path: './gradle.properties' | |
properties: 'profileServiceVersion' | |
- name: Get the package id for the version read from the properties file | |
uses: castlabs/get-package-version-id-action@v2.0 | |
id: versions | |
with: | |
version: ${{steps.read_property.outputs.profileServiceVersion}} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Delete the github package with the id we just retrieved (all SNAPSHOT versions are considered part of the same package) | |
uses: actions/delete-package-versions@v2 | |
if: ${{ steps.versions.outputs.ids != '' }} | |
with: | |
package-version-ids: "${{ steps.versions.outputs.ids }}" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clean to remove clover instrumentation | |
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee | |
with: | |
arguments: clean | |
- name: Run tests | |
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee | |
with: | |
arguments: check | |
- name: Publish the JAR to the repository | |
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee | |
with: | |
arguments: publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |