Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into allow-emulators
Browse files Browse the repository at this point in the history
  • Loading branch information
pricem14pc committed Sep 3, 2024
2 parents 0cc5915 + 4c8823b commit abbcc3f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 18 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches:
- main
paths-ignore:
- '**/Chart.yaml'

env:
IMAGE: case
Expand Down Expand Up @@ -84,10 +86,28 @@ jobs:
run: |
git fetch --tags
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Import BOT GPG key
run: echo $BOT_GPG_KEY | base64 --decode | gpg --batch --import
env:
BOT_GPG_KEY: ${{ secrets.BOT_GPG_KEY }}
- name: Prepare gpg CLI signing step
run: |
rm -rf /tmp/gpg.sh
echo '#!/bin/bash' >> /tmp/gpg.sh
echo 'gpg --batch --pinentry-mode=loopback --passphrase $BOT_GPG_KEY_PASSPHRASE $@' >> /tmp/gpg.sh
chmod +x /tmp/gpg.sh
- name: Setup git
run: |
git config commit.gpgsign true
git config user.signingkey "${{ secrets.BOT_GPG_KEY_ID }}"
git config gpg.program /tmp/gpg.sh
git config user.name "${{ secrets.BOT_USERNAME }}"
git config user.email "${{ secrets.BOT_EMAIL }}"
- name: update versions
if: github.ref != 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
BOT_GPG_KEY_PASSPHRASE: ${{ secrets.BOT_GPG_KEY_PASSPHRASE }}
COMMIT_MSG: |
auto patch increment
shell: bash
Expand Down
1 change: 0 additions & 1 deletion _infra/helm/case/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ version: 12.0.23
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 12.0.23

1 change: 1 addition & 0 deletions docker-compose-down.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker compose down
1 change: 1 addition & 0 deletions docker-compose-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker compose up -d
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2.1'
services:
collectionexercise:
container_name: collex-case-it
Expand Down
34 changes: 18 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@
<version>${godaddylogging.version}</version>
</dependency>

<dependency>
<groupId>com.dkanejs.maven.plugins</groupId>
<artifactId>docker-compose-maven-plugin</artifactId>
<version>4.0.0</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
Expand Down Expand Up @@ -322,6 +316,13 @@
<scope>test</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/org.codehaus.mojo/exec-maven-plugin -->
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.4.0</version>
</dependency>

</dependencies>

<build>
Expand All @@ -330,39 +331,40 @@

<plugins>
<plugin>
<groupId>com.dkanejs.maven.plugins</groupId>
<artifactId>docker-compose-maven-plugin</artifactId>
<version>4.0.0</version>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution>
<id>pre-stop</id>
<phase>pre-integration-test</phase>
<goals>
<goal>down</goal>
<goal>exec</goal>
</goals>
<configuration>
<composeFile>${project.basedir}/docker-compose.yml</composeFile>
<workingDirectory>${project.basedir}</workingDirectory>
<executable>docker-compose-down.sh</executable>
</configuration>
</execution>
<execution>
<id>up</id>
<phase>pre-integration-test</phase>
<goals>
<goal>up</goal>
<goal>exec</goal>
</goals>
<configuration>
<composeFile>${project.basedir}/docker-compose.yml</composeFile>
<detachedMode>true</detachedMode>
<workingDirectory>${project.basedir}</workingDirectory>
<executable>docker-compose-up.sh</executable>
</configuration>
</execution>
<execution>
<id>down</id>
<phase>post-integration-test</phase>
<goals>
<goal>down</goal>
<goal>exec</goal>
</goals>
<configuration>
<composeFile>${project.basedir}/docker-compose.yml</composeFile>
<workingDirectory>${project.basedir}</workingDirectory>
<executable>docker-compose-down.sh</executable>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit abbcc3f

Please sign in to comment.