Skip to content

Commit

Permalink
Remove now unused organisaatio deploy GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rce committed Dec 23, 2024
1 parent 9488fad commit 8a0cb21
Showing 1 changed file with 1 addition and 61 deletions.
62 changes: 1 addition & 61 deletions .github/workflows/build-organisaatio-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,64 +216,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonarqube
deploy-container:
needs: [cypress, build, playwright]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download organisaatio-service-jar
uses: actions/download-artifact@v4
with:
name: organisaatio-service-jar
- name: Build Docker Conainer
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
git clone https://github.com/Opetushallitus/ci-tools.git
source ci-tools/common/setup-tools.sh
export BASE_IMAGE="baseimage-fatjar-openjdk21:master"
export ARTIFACT_NAME="organisaatio"
cp organisaatio-service.jar $DOCKER_BUILD_DIR/artifact/$ARTIFACT_NAME.jar
cp -vr src/main/resources/oph-configuration $DOCKER_BUILD_DIR/config/
./ci-tools/common/pull-image.sh
./ci-tools/github-build/build-fatjar.sh $ARTIFACT_NAME
./ci-tools/github-build/upload-image.sh $ARTIFACT_NAME
deploy-artifacts:
needs: [build, cypress, playwright]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "corretto"
- uses: gradle/actions/wrapper-validation@v3
- uses: gradle/actions/setup-gradle@v3
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_sadeRepositoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }}
ORG_GRADLE_PROJECT_sadeRepositoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: ./gradlew publish -PversionSuffix=.RELEASE
deploy-artifacts-snapshot:
needs: [build, cypress, playwright]
if: github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "corretto"
- uses: gradle/actions/wrapper-validation@v3
- uses: gradle/actions/setup-gradle@v3
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_sadeRepositoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }}
ORG_GRADLE_PROJECT_sadeRepositoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: ./gradlew publish
run: ./gradlew build sonarqube

0 comments on commit 8a0cb21

Please sign in to comment.