Skip to content

Commit

Permalink
331 dockerhub rate limit - Run docker info during mvn build
Browse files Browse the repository at this point in the history
  • Loading branch information
colinpalmer-pro committed Sep 17, 2024
1 parent 1e2c7eb commit d6f089b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,7 @@ jobs:
# Run build with the gh-build profile
- name: Build aiSSEMBLE
run: |
user_abbrev=$(docker info | grep Username | awk '{print substr($2, 1, 2)}')
if [ -z "$user_abbrev" ]; then
echo "Not authenticated"
else
echo "Authenticated as: $user_abbrev"
fi
if [ -f ~/.docker/config.json ]; then
echo "Docker config file found"
else
echo "Docker config file not found"
fi
./mvnw -B clean install -pl :aissemble-fastapi -Pci,integration-test,gh-build --settings $HOME/.m2/settings.xml
./mvnw -U -B clean install -pl :aissemble-fastapi -Pci,integration-test,gh-build --settings $HOME/.m2/settings.xml
# Install Maven which is needed for archetype tests
# - name: Set up Maven
# uses: stCarolas/setup-maven@v5
Expand Down
19 changes: 19 additions & 0 deletions extensions/extensions-docker/aissemble-fastapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,25 @@
<groupId>${group.fabric8.plugin}</groupId>
<artifactId>docker-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<arguments>
<argument>info</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit d6f089b

Please sign in to comment.