-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old actions and use new build scripts (#1658)
- Loading branch information
Showing
10 changed files
with
52 additions
and
246 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build and deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
release: | ||
types: | ||
- published | ||
|
||
concurrency: | ||
group: cd-${{ github.ref }} | ||
|
||
jobs: | ||
test: | ||
name: Tests | ||
uses: ./.github/workflows/_tests.yml | ||
with: | ||
python-version: ${{ vars.CI_PYTHON_VERSION }} | ||
poetry-version: ${{ vars.CI_POETRY_VERSION }} | ||
|
||
version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get tag | ||
id: version-tag | ||
uses: nationalarchives/ds-docker-actions/.github/actions/get-version-tag@main | ||
outputs: | ||
version: ${{ steps.version-tag.outputs.version-tag }} | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test | ||
- version | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build Docker image | ||
uses: nationalarchives/ds-docker-actions/.github/actions/docker-build@main | ||
with: | ||
version: ${{ needs.version.outputs.version }} | ||
latest: ${{ github.ref == 'refs/heads/main' }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
name: CI | ||
name: Pull request | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
ci: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.