From dd88f8ca3642da8d172ef35ed6d2861755d2b315 Mon Sep 17 00:00:00 2001 From: Bill Dueber Date: Thu, 26 Sep 2024 13:32:38 -0400 Subject: [PATCH] Remove old build actions --- .github/workflows/build-branch-image.yml | 32 ----------------- .github/workflows/build-main.yml | 35 ------------------- .github/workflows/build-solr-amd64-image.yml | 30 ---------------- .github/workflows/build-solr-arm64-image.yml | 30 ---------------- .github/workflows/build-solr-image.yml | 30 ---------------- .../{build-unstable-branch.yml => build.yml} | 2 +- 6 files changed, 1 insertion(+), 158 deletions(-) delete mode 100644 .github/workflows/build-branch-image.yml delete mode 100644 .github/workflows/build-main.yml delete mode 100644 .github/workflows/build-solr-amd64-image.yml delete mode 100644 .github/workflows/build-solr-arm64-image.yml delete mode 100644 .github/workflows/build-solr-image.yml rename .github/workflows/{build-unstable-branch.yml => build.yml} (90%) diff --git a/.github/workflows/build-branch-image.yml b/.github/workflows/build-branch-image.yml deleted file mode 100644 index 14ee4f3..0000000 --- a/.github/workflows/build-branch-image.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: "Build branch image" - -on: - workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - target: - - webapp - - assets - steps: - - uses: actions/checkout@v3 - - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - uses: docker/build-push-action@v2 - env: - BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{secrets.GH_PACKAGE_READ_TOKEN}} - with: - context: . - file: Dockerfile.prod - target: ${{ matrix.target }} - push: true - tags: | - ghcr.io/mlibrary/dromedary/dromedary_branch_${{ matrix.target }}:latest - ghcr.io/mlibrary/dromedary/dromedary_branch_${{ matrix.target }}:${{ github.ref_name }} diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml deleted file mode 100644 index 0d2d1cc..0000000 --- a/.github/workflows/build-main.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Build main - -on: - push: - # When merged this should end up being branches: [master] (or, - # better yet, branches: [main]). - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - target: - - webapp - - assets - steps: - - uses: actions/checkout@v3 - - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - uses: docker/build-push-action@v2 - env: - BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{secrets.GH_PACKAGE_READ_TOKEN}} - with: - context: . - file: Dockerfile.prod - target: ${{ matrix.target }} - push: true - tags: | - ghcr.io/mlibrary/dromedary/dromedary_unstable_${{ matrix.target }}:latest - ghcr.io/mlibrary/dromedary/dromedary_unstable_${{ matrix.target }}:${{ github.sha }} diff --git a/.github/workflows/build-solr-amd64-image.yml b/.github/workflows/build-solr-amd64-image.yml deleted file mode 100644 index 95dc490..0000000 --- a/.github/workflows/build-solr-amd64-image.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: "Build solr amd64 image" - -on: - workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build image and push to GitHub Container Registry - uses: docker/build-push-action@v2 - with: - file: ./solr/solr-amd64.dockerfile - context: ./solr - push: true - tags: 'ghcr.io/mlibrary/dromedary/dromedary-solr:${{ github.ref_name }}, ghcr.io/mlibrary/dromedary/dromedary-solr:amd64' diff --git a/.github/workflows/build-solr-arm64-image.yml b/.github/workflows/build-solr-arm64-image.yml deleted file mode 100644 index 6a6bf0a..0000000 --- a/.github/workflows/build-solr-arm64-image.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: "Build solr arm64 image" - -on: - workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build image and push to GitHub Container Registry - uses: docker/build-push-action@v2 - with: - file: ./solr/solr-arm64.dockerfile - context: ./solr - push: true - tags: 'ghcr.io/mlibrary/dromedary/dromedary-solr:${{ github.ref_name }}, ghcr.io/mlibrary/dromedary/dromedary-solr:arm64' diff --git a/.github/workflows/build-solr-image.yml b/.github/workflows/build-solr-image.yml deleted file mode 100644 index b8b8e7f..0000000 --- a/.github/workflows/build-solr-image.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: "Build solr image" - -on: - workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build image and push to GitHub Container Registry - uses: docker/build-push-action@v2 - with: - file: ./solr/Dockerfile - context: ./solr - push: true - tags: 'ghcr.io/mlibrary/dromedary/dromedary-solr:${{ github.ref_name }}, ghcr.io/mlibrary/dromedary/dromedary-solr:latest' diff --git a/.github/workflows/build-unstable-branch.yml b/.github/workflows/build.yml similarity index 90% rename from .github/workflows/build-unstable-branch.yml rename to .github/workflows/build.yml index 2ffd6e4..4801bb9 100644 --- a/.github/workflows/build-unstable-branch.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: with: context: . push: true - tags: 'ghcr.io/mlibrary/dromedary/dromedary-unstable:${{ github.sha }}' + tags: 'ghcr.io/mlibrary/dromedary/dromedary:${{ github.sha }}' file: ./Dockerfile target: production build-args: |