Skip to content

Commit

Permalink
move around action files
Browse files Browse the repository at this point in the history
  • Loading branch information
rococodogs committed Sep 9, 2024
1 parent 9d890cd commit fc1c3dc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 133 deletions.
85 changes: 0 additions & 85 deletions .github/actions/build-containers/action.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/build-dev-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build development containers
on:
push:
branches:
- develop
- refactor-actions # remove this before merging!

release:
types:
- prereleased

permissions:
checks: write

jobs:
lint_and_test:
name: Lint + Test
uses: ./.github/workflows/lint-and-test.yml

build_and_push_development_containers:
name: Build and push dev containers
uses: ./.github/workflows/build-containers.yml
with:
registry: ${{ secrets.CONTAINER_REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
tag: ${{ github.event.release.tag_name || github.ref_name }}
environments: '["stage"]'
services: '["rails","sidekiq","fcrepo","solr","fits_servlet"]'

39 changes: 0 additions & 39 deletions .github/workflows/build-prerelease.yml

This file was deleted.

13 changes: 4 additions & 9 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
uses: ./.github/workflows/lint-and-test.yml

publish_release_containers:
strategy:
matrix:
environment: [stage, production]
name: Build and push release containers
runs-on: ubuntu-latest
environment: ${{ matrix.environment }}
needs: [lint_and_test]
Expand All @@ -25,14 +23,11 @@ jobs:
uses: actions/checkout@v3
-
name: Build and publish release containers in stage environment
uses: ./.github/actions/build-containers
uses: ./.github/workflows/build-containers.yml
with:
registry: ${{ secrets.CONTAINER_REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
tag: ${{ github.event.release.tag_name }}
application_image_name: ${{ vars.APPLICATION_CONTAINER_ID }}
worker_image_name: ${{ vars.WORKER_CONTAINER_ID }}
fcrepo_image_name: ${{ vars.FCREPO_CONTAINER_ID }}
handle_image_name: ${{ vars.HANDLE_CONTAINER_ID }}
solr_image_name: ${{ vars.SOLR_CONTAINER_ID }}
environments: '["stage", "production"]'
servies: '["rails","sidekiq","fcrepo","solr","fits_servlet"]'

0 comments on commit fc1c3dc

Please sign in to comment.