diff --git a/.github/workflows/dockerhub-description.yml b/.github/workflows/dockerhub-description.yml index 096a880d..bb8284ad 100644 --- a/.github/workflows/dockerhub-description.yml +++ b/.github/workflows/dockerhub-description.yml @@ -10,264 +10,264 @@ jobs: dockerHubDescription: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Fix Relative Paths - run: | - find . -maxdepth 2 -mindepth 2 -type f -name "README*.md" -exec sed -i 's/](\.\.\/\([^/]*\).*)/](.\/\1)/g' {} \; - - - name: ABuild - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/abuild - readme-filepath: ./abuild/README.md - - - name: ActiveMQ - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/activemq - readme-filepath: ./activemq/README.md - - - name: Alpaca - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/alpaca - readme-filepath: ./alpaca/README.md - - - name: Base - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/base - readme-filepath: ./base/README.md - - - name: Blazegraph - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/blazegraph - readme-filepath: ./blazegraph/README.md - - - name: cantaloupe - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/cantaloupe - readme-filepath: ./cantaloupe/README.dockerhub.md - - - name: Code-Server - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/code-server - readme-filepath: ./code-server/README.md - - - name: Composer - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/composer - readme-filepath: ./composer/README.md - - - name: Crayfish - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/crayfish - readme-filepath: ./crayfish/README.md - - - name: CrayFits - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/crayfits - readme-filepath: ./crayfits/README.md - - - name: Demo - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/demo - readme-filepath: ./demo/README.md - - - name: Download - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/download - readme-filepath: ./download/README.md - - - name: Drupal - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/drupal - readme-filepath: ./drupal/README.md - - - name: Fcrepo - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/fcrepo - readme-filepath: ./fcrepo/README.md - - - name: Fcrepo6 - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/fcrepo6 - readme-filepath: ./fcrepo6/README.md - - - name: Fits - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/fits - readme-filepath: ./fits/README.md - - - name: Handle - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/handle - readme-filepath: ./handle/README.md - - - name: Homarus - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/homarus - readme-filepath: ./homarus/README.md - - - name: Houdini - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/houdini - readme-filepath: ./houdini/README.md - - - name: hypercube - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/hypercube - readme-filepath: ./hypercube/README.md - - - name: imagemagick - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/imagemagick - readme-filepath: ./imagemagick/README.md - - - name: Java - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/java - readme-filepath: ./java/README.md - - - name: Karaf - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/karaf - readme-filepath: ./karaf/README.md - - - name: MariaDB - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/mariadb - readme-filepath: ./mariadb/README.md - - - name: Matomo - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/matomo - readme-filepath: ./matomo/README.md - - - name: Milliner - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/milliner - readme-filepath: ./milliner/README.md - - - name: Nginx - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/nginx - readme-filepath: ./nginx/README.md - - - name: PostgreSQL - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/postgresql - readme-filepath: ./postgresql/README.md - - - name: Recast - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/recast - readme-filepath: ./recast/README.md - - - name: RipRap - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/riprap - readme-filepath: ./riprap/README.md - - - name: Solr - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/solr - readme-filepath: ./solr/README.md - - - name: Tomcat - Update Docker Hub Description - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - repository: ${{ secrets.REPOSITORY }}/tomcat - readme-filepath: ./tomcat/README.md + - uses: actions/checkout@v2 + + - name: Fix Relative Paths + run: | + find . -maxdepth 2 -mindepth 2 -type f -name "README*.md" -exec sed -i 's/](\.\.\/\([^/]*\).*)/](.\/\1)/g' {} \; + + - name: ABuild - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/abuild + readme-filepath: ./abuild/README.md + + - name: ActiveMQ - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/activemq + readme-filepath: ./activemq/README.md + + - name: Alpaca - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/alpaca + readme-filepath: ./alpaca/README.md + + - name: Base - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/base + readme-filepath: ./base/README.md + + - name: Blazegraph - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/blazegraph + readme-filepath: ./blazegraph/README.md + + - name: cantaloupe - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/cantaloupe + readme-filepath: ./cantaloupe/README.dockerhub.md + + - name: Code-Server - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/code-server + readme-filepath: ./code-server/README.md + + - name: Composer - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/composer + readme-filepath: ./composer/README.md + + - name: Crayfish - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/crayfish + readme-filepath: ./crayfish/README.md + + - name: CrayFits - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/crayfits + readme-filepath: ./crayfits/README.md + + - name: Demo - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/demo + readme-filepath: ./demo/README.md + + - name: Download - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/download + readme-filepath: ./download/README.md + + - name: Drupal - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/drupal + readme-filepath: ./drupal/README.md + + - name: Fcrepo - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/fcrepo + readme-filepath: ./fcrepo/README.md + + - name: Fcrepo6 - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/fcrepo6 + readme-filepath: ./fcrepo6/README.md + + - name: Fits - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/fits + readme-filepath: ./fits/README.md + + - name: Handle - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/handle + readme-filepath: ./handle/README.md + + - name: Homarus - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/homarus + readme-filepath: ./homarus/README.md + + - name: Houdini - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/houdini + readme-filepath: ./houdini/README.md + + - name: hypercube - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/hypercube + readme-filepath: ./hypercube/README.md + + - name: imagemagick - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/imagemagick + readme-filepath: ./imagemagick/README.md + + - name: Java - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/java + readme-filepath: ./java/README.md + + - name: Karaf - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/karaf + readme-filepath: ./karaf/README.md + + - name: MariaDB - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/mariadb + readme-filepath: ./mariadb/README.md + + - name: Matomo - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/matomo + readme-filepath: ./matomo/README.md + + - name: Milliner - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/milliner + readme-filepath: ./milliner/README.md + + - name: Nginx - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/nginx + readme-filepath: ./nginx/README.md + + - name: PostgreSQL - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/postgresql + readme-filepath: ./postgresql/README.md + + - name: Recast - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/recast + readme-filepath: ./recast/README.md + + - name: RipRap - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/riprap + readme-filepath: ./riprap/README.md + + - name: Solr - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/solr + readme-filepath: ./solr/README.md + + - name: Tomcat - Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + repository: ${{ secrets.REPOSITORY }}/tomcat + readme-filepath: ./tomcat/README.md diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 74596a8b..26ab9dc9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,32 +1,32 @@ name: Build and Test Pull Requests -on: +on: pull_request: branches: - main jobs: build: - name: Build and Test PR + name: Build and Test PR runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 360 steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 8 - - name: Setup Gradle Cache - uses: actions/cache@v1 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- - - name: Build/Test Docker images - uses: eskatos/gradle-command-action@v1 - with: - arguments: build test grype -PisCI=true --info - - uses: actions/upload-artifact@v2 - with: - name: Grype Reports - path: build/**/*-grype.* \ No newline at end of file + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Setup Gradle Cache + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Build/Test Docker images + uses: eskatos/gradle-command-action@v1 + with: + arguments: build test grype -PisCI=true --info + - uses: actions/upload-artifact@v2 + with: + name: Grype Reports + path: build/**/*-grype.* diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index dd93ab77..4b4e9586 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -5,34 +5,34 @@ jobs: build: name: Build and Push Docker Images for Commit runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 360 steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 8 - - name: Setup Gradle Cache - uses: actions/cache@v1 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - - name: Set TAG Environment Variable - run: | - echo "TAG=$GITHUB_SHA" >> $GITHUB_ENV - - name: Build/Test/Push Docker images - uses: eskatos/gradle-command-action@v1 - with: - arguments: build test grype '-Pdocker.tags=${{ env.TAG }}' '-Pdocker.repository=${{ secrets.REPOSITORY }}' -Pdocker.push=true -Pdocker.driver=docker-container -Pdocker.cacheTo=true -Pdocker.platforms=linux/amd64,linux/arm64 -PisCI=true --info - - uses: actions/upload-artifact@v2 - with: - name: Grype Reports - path: build/**/*-grype.* + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Setup Gradle Cache + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + - name: Set TAG Environment Variable + run: | + echo "TAG=$GITHUB_SHA" >> $GITHUB_ENV + - name: Build/Test/Push Docker images + uses: eskatos/gradle-command-action@v1 + with: + arguments: build test grype '-Pdocker.tags=${{ env.TAG }}' '-Pdocker.repository=${{ secrets.REPOSITORY }}' -Pdocker.push=true -Pdocker.driver=docker-container -Pdocker.cacheTo=true -Pdocker.platforms=linux/amd64,linux/arm64 -PisCI=true --info + - uses: actions/upload-artifact@v2 + with: + name: Grype Reports + path: build/**/*-grype.* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f704e75..fb59bc62 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,33 +4,33 @@ on: types: [published] jobs: build: - name: Build and Push Release Images + name: Build and Push Release Images runs-on: ubuntu-latest - timeout-minutes: 60 + timeout-minutes: 360 steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 8 - - name: Setup Gradle Cache - uses: actions/cache@v1 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASS }} - - name: Set TAG Environment Variable - run: | - export TAG=$(echo "${GITHUB_REF}" | cut -d "/" -f3) - echo "TAG=$TAG" >> $GITHUB_ENV - - name: Build/Push/Test Docker images - uses: eskatos/gradle-command-action@v1 - with: - arguments: build test '-Pdocker.tags=${{ env.TAG }}' '-Pdocker.repository=${{ secrets.REPOSITORY }}' -Pdocker.push=true -Pdocker.driver=docker-container -Pdocker.cacheTo=true -Pdocker.platforms=linux/amd64,linux/arm64 -PisCI=true --info + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Setup Gradle Cache + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + - name: Set TAG Environment Variable + run: | + export TAG=$(echo "${GITHUB_REF}" | cut -d "/" -f3) + echo "TAG=$TAG" >> $GITHUB_ENV + - name: Build/Push/Test Docker images + uses: eskatos/gradle-command-action@v1 + with: + arguments: build test '-Pdocker.tags=${{ env.TAG }}' '-Pdocker.repository=${{ secrets.REPOSITORY }}' -Pdocker.push=true -Pdocker.driver=docker-container -Pdocker.cacheTo=true -Pdocker.platforms=linux/amd64,linux/arm64 -PisCI=true --info