Skip to content

Commit

Permalink
331 dockerhub rate limit - Github Actions aissemble-fastapi, check do…
Browse files Browse the repository at this point in the history
…cker image
  • Loading branch information
colinpalmer-pro committed Sep 18, 2024
1 parent 6af48ac commit 526d42c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/build2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ jobs:
uses: gabrielfalcao/pyenv-action@v18
with:
default: 3.11.4
# - name: Load m2 repository cache # Manually caching .m2 repo as the setup-java caching isn't falling back to older caches
# id: cached-m2-repo
# uses: actions/cache@v4
# with:
# path: ~/.m2/repository
# key: maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# maven-
# - name: Load m2 build cache
# id: cached-m2-build
# uses: actions/cache@v4
# with:
# path: ~/.m2/build-cache
# key: maven-build-cache-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# maven-build-cache-
- name: Load m2 repository cache # Manually caching .m2 repo as the setup-java caching isn't falling back to older caches
id: cached-m2-repo
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: Load m2 build cache
id: cached-m2-build
uses: actions/cache@v4
with:
path: ~/.m2/build-cache
key: maven-build-cache-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-build-cache-
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Poetry cache
Expand Down Expand Up @@ -94,7 +94,8 @@ jobs:
# Run build with the gh-build profile
- name: Build aiSSEMBLE
run: |
./mvnw -U -B clean install -pl :aissemble-fastapi -Pci,integration-test,gh-build --settings $HOME/.m2/settings.xml
./mvnw -B clean install -U -Dmaven.build.cache.skipCache=true -Ddocker.nocache=true -pl :aissemble-fastapi -Pci,integration-test,gh-build --settings $HOME/.m2/settings.xml
docker image ls | grep "ghcr.io/boozallen/aissemble-fastapi" || echo "Image not found"
# Install Maven which is needed for archetype tests
# - name: Set up Maven
# uses: stCarolas/setup-maven@v5
Expand Down
6 changes: 6 additions & 0 deletions extensions/extensions-docker/aissemble-fastapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
<plugin>
<groupId>${group.fabric8.plugin}</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<verbose>true</verbose>
<logAll>true</logAll>
<logStdout>true</logStdout>
<showLogs>true</showLogs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ user_abbrev=$(docker info | grep Username | awk '{print substr($2, 1, 4)}')
if [ -z "$user_abbrev" ]; then
echo "Not authenticated"
else
echo "Authenticated as: $user_abbrev"
echo "Docker info: $user_abbrev"
fi

0 comments on commit 526d42c

Please sign in to comment.