This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Workflow's with newer versions of Postgres, Ubuntu, and Checko…
…ut action (#440) * update ubuntu * update postgres versions * update checkout to v3 * add more shared mem * update shm size in pts workflow * update documentation and names * revert back to 20 * add new env var and update to 22.04 * rever to ubuntu 20.04
- Loading branch information
Showing
8 changed files
with
56 additions
and
51 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
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,10 +1,10 @@ | ||
name: 📁 PTS processing | ||
name: 📁 Property Tax System (PTS) processing (input data for PLUTO) | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- pts/** | ||
paths: | ||
paths: | ||
- pluto_build/python/geocode.py | ||
- pluto_build/bin/pts.sh | ||
- pluto_build/sql/_load_pts.sql | ||
|
@@ -17,14 +17,15 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
services: | ||
postgres: | ||
image: postgis/postgis:12-3.0-alpine | ||
image: postgis/postgis:15-3.3-alpine | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
--shm-size=2gb | ||
ports: | ||
- 5432:5432 | ||
env: | ||
|
@@ -37,7 +38,7 @@ jobs: | |
GINGER_USER: ${{ secrets.GINGER_USER }} | ||
GINGER_HOST: ${{ secrets.GINGER_HOST }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: install ssh key | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
|
@@ -54,7 +55,7 @@ jobs: | |
- name: process pts | ||
working-directory: pluto_build | ||
run: ./pluto import pts | ||
|
||
- uses: NYCPlanning/[email protected] | ||
id: pluto_pts | ||
with: | ||
|
@@ -68,7 +69,7 @@ jobs: | |
- name: geocode pts | ||
working-directory: pluto_build | ||
run: ./pluto geocode pts | ||
|
||
- uses: NYCPlanning/[email protected] | ||
id: pluto_input_geocodes | ||
with: | ||
|
@@ -78,7 +79,7 @@ jobs: | |
latest: true | ||
compress: true | ||
output_format: pgdump csv | ||
|
||
- name: clean up pts | ||
shell: bash | ||
working-directory: pluto_build | ||
|
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 |
---|---|---|
|
@@ -8,23 +8,23 @@ on: | |
jobs: | ||
version: | ||
name: get version | ||
runs-on: ubuntu-20.04 | ||
outputs: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get Version | ||
id: version | ||
run: | | ||
source pluto_build/version.env | ||
echo "::set-output name=version::$VERSION" | ||
echo "Version is $VERSION" | ||
publish: | ||
needs: [version] | ||
name: publishing | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
env: | ||
AWS_S3_ENDPOINT: ${{ secrets.DO_S3_ENDPOINT }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.DO_ACCESS_KEY_ID }} | ||
|
@@ -39,7 +39,7 @@ jobs: | |
- dcp_mappluto_clipped | ||
# - pluto_corrections | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: NYCPlanning/[email protected] | ||
# if: matrix.dataset != 'pluto_corrections' | ||
with: | ||
|
@@ -49,7 +49,7 @@ jobs: | |
compress: true | ||
output_format: pgdump csv shapefile | ||
version: ${{ needs.version.outputs.version }} | ||
|
||
- uses: NYCPlanning/[email protected] | ||
# if: matrix.dataset == 'pluto_corrections' | ||
with: | ||
|
@@ -67,8 +67,8 @@ jobs: | |
project_id: ${{ secrets.GCP_PROJECT_ID_DATA_ENGINEERING }} | ||
service_account_key: ${{ secrets.GCP_GCS_BQ_SA_KEY }} | ||
export_default_credentials: true | ||
|
||
- name: Upload to BigQuery | ||
if: matrix.dataset == 'dcp_mappluto' | ||
working-directory: pluto_build | ||
run: ./pluto bq publish dcp_mappluto | ||
run: ./pluto bq publish dcp_mappluto |
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 |
---|---|---|
|
@@ -5,27 +5,27 @@ on: | |
version: | ||
description: version name of the release | ||
required: false | ||
default: '02b' | ||
default: "02b" | ||
library: | ||
description: run data library load process? | ||
required: false | ||
default: 'yes' | ||
default: "yes" | ||
bq: | ||
description: run bq load process? | ||
required: false | ||
default: 'yes' | ||
default: "yes" | ||
jobs: | ||
library: | ||
name: load to data library | ||
if: github.event.inputs.library == 'yes' | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
env: | ||
AWS_S3_ENDPOINT: ${{ secrets.DO_S3_ENDPOINT }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.DO_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DO_SECRET_ACCESS_KEY }} | ||
AWS_S3_BUCKET: edm-recipes | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: NYCPlanning/[email protected] | ||
if: github.event.inputs.library == 'yes' | ||
with: | ||
|
@@ -38,17 +38,17 @@ jobs: | |
bq: | ||
name: load to bigquery | ||
needs: library | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
if: always() && github.event.inputs.bq == 'yes' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@master | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID_DATA_ENGINEERING }} | ||
service_account_key: ${{ secrets.GCP_GCS_BQ_SA_KEY }} | ||
export_default_credentials: true | ||
|
||
- name: Upload to BigQuery | ||
working-directory: pluto_build | ||
run: ./pluto bq publish_historical dcp_mappluto ${{ github.event.inputs.version }} |
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