-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from alphagov/add-build-image
Add build image and update dynamic harvest source
- Loading branch information
Showing
7 changed files
with
137 additions
and
13 deletions.
There are no files selected for viewing
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,60 @@ | ||
name: Build and push images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
buildType: | ||
description: Decide on what to build | ||
required: true | ||
type: choice | ||
options: | ||
- build_push | ||
- build_only | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_push: | ||
name: ${{ matrix.app.name }} (${{ matrix.arch }}) | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- name: Login to GHCR | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.gitRef }} | ||
- name: Build dynamic | ||
if: ${{ inputs.buildType == 'build_only' }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./dynamic | ||
push: false | ||
tags: alphagov/dynamic-ckan-harvest-source:1.0.0 | ||
- name: Build static | ||
if: ${{ inputs.buildType == 'build_only' }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./static | ||
push: false | ||
tags: alphagov/static-ckan-harvest-source:1.0.0 | ||
- name: Build and push dynamic | ||
if: ${{ inputs.buildType == 'build_push' || github.ref == 'refs/heads/main' }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./dynamic | ||
push: true | ||
tags: alphagov/dynamic-ckan-harvest-source:1.0.0 | ||
- name: Build and push static | ||
if: ${{ inputs.buildType == 'build_push' || github.ref == 'refs/heads/main' }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./static | ||
push: true | ||
tags: alphagov/static-ckan-harvest-source:1.0.0 |
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,4 +1,4 @@ | ||
FROM alpine:3.7 | ||
FROM alpine:3.16 | ||
|
||
ENV FLASK_APP=main.py | ||
|
||
|
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 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 +1 @@ | ||
Flask==1.1.1 | ||
Flask==3.0.0 |
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 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,54 @@ | ||
{ | ||
"@context": "https://project-open-data.cio.gov/v1.1/schema/catalog.jsonld", | ||
"@id": "https://open.barnet.gov.uk/data.json?masthead=london-borough-of-barnet", | ||
"@type": "dcat:Catalog", | ||
"conformsTo": "https://project-open-data.cio.gov/v1.1/schema", | ||
"describedBy": "https://project-open-data.cio.gov/v1.1/schema/catalog.json", | ||
"dataset": [ | ||
{ | ||
"title": "Brownfield Land Register", | ||
"theme": [ | ||
"Environment, Property & Land" | ||
], | ||
"publisher": { | ||
"@type": "org:Organization", | ||
"name": "London Borough of Barnet" | ||
}, | ||
"issued": "2017-12-19T09:51:17.000Z", | ||
"modified": "2021-01-05T09:42:56.000Z", | ||
"landingPage": "https://open.barnet.gov.uk/dataset/249xe/brownfield-land-register", | ||
"license": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", | ||
"distribution": [ | ||
{ | ||
"@type": "dcat:Distribution", | ||
"downloadURL": "https://open.barnet.gov.uk/download/249xe/2gv/Brownfield%20Land%20Register%202020%20-%20Barnet.csv", | ||
"title": "Brownfield Land Register - Barnet.csv", | ||
"description": "" | ||
}, | ||
{ | ||
"@type": "dcat:Distribution", | ||
"downloadURL": "https://open.barnet.gov.uk/download/249xe/dlr/Brownfield-Land-Register.xml", | ||
"title": "Brownfield Land Register metadata file", | ||
"description": "" | ||
} | ||
], | ||
"description": "This is a dataset of the London Borough of Barnet's Brownfield Land Register, as referenced in the Housing and Planning Act 2016. Part 1 lists brownfield land sites of at least 0.25ha or capable of providing 5 or more dwellings that are considered suitable for housing led development. Sites listed in Part 2 of the register will have been granted Permission in Principle. Local Planning Authorities are required to review registers at least once a year.\r\nFurther information from the DCLG on Brownfield Land Registers is provided here\r\nThis dataset has been published by the London Borough of Barnet under the Open Government Licence (OGL) (v3).\r\nPlease acknowledge the Information Provider through the following attribution statement:\r\n© London Borough of Barnet, 2017, OGL, v3.0\r\nContains OS data © Crown copyright and database right, 2017", | ||
"accessLevel": "public", | ||
"@type": "dcat:Dataset", | ||
"contactPoint": { | ||
"@type": "vcard:Contact", | ||
"fn": "<Nobody>" | ||
}, | ||
"identifier": "249xe", | ||
"keyword": [ | ||
"Brownfield", | ||
"Development", | ||
"Housing", | ||
"Land", | ||
"Permission in Prin", | ||
"Register", | ||
"Sites" | ||
] | ||
} | ||
] | ||
} |
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