Skip to content

Commit

Permalink
Merge pull request #132 from hathitrust/action-updates
Browse files Browse the repository at this point in the history
Action updates
  • Loading branch information
Ronster2018 authored Feb 6, 2024
2 parents 0b089f2 + 4c05401 commit 8ef730d
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 105 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build-main.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build A Branch

on:
workflow_run:
workflows: ['Run Tests']
branches: ['main']
types: [completed]
workflow_dispatch:
inputs:
tag:
description: Release or Tag
required: true
push_latest:
description: Set True if the build is for the latest version
type: boolean
required: false
default: false

jobs:
build-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Set Inputs
id: set_inputs
run: |
if [ "${{ github.event_name }}" == "workflow_run" ]; then
echo "tag=${{ github.sha }}" >> $GITHUB_ENV
echo "push_latest=true" >> $GITHUB_ENV
else
# workflow_dispatch or other trigger
echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
echo "push_latest=${{ github.event.inputs.push_latest }}" >> $GITHUB_ENV
fi
- name: Build Image
uses: hathitrust/github_actions/build@v1
with:
image: ghcr.io/${{ github.repository }}-unstable
tag: ${{ env.tag }}
push_latest: ${{ env.push_latest}}
registry_token: ${{ github.token }}
26 changes: 0 additions & 26 deletions .github/workflows/deploy-production.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/manual-deploy-testing.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
submodules: true

- name: Build docker image
run: docker-compose --file docker-compose.test.yml build
run: docker compose --file docker-compose.test.yml build

- name: Run tests
run: docker-compose --file docker-compose.test.yml run sut
run: docker compose --file docker-compose.test.yml run sut
env:
GITHUB_TOKEN: ${{ secrets.github_token }}

0 comments on commit 8ef730d

Please sign in to comment.