Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ea1b515
beam and maven update (#55)
delguan Jun 10, 2025
bd96c39
update cloudbuild
delguan Jun 10, 2025
76c113d
update dockerfile
delguan Jun 10, 2025
20db847
update dockerfile
delguan Jun 10, 2025
b7eac5f
update cloudbuild
delguan Jun 10, 2025
a2fc12b
update dockerfile
delguan Jun 10, 2025
3868f5e
update dockerfile
delguan Jun 10, 2025
2598cf6
update cloudbuild
delguan Jun 10, 2025
db779a9
bump version for java
delguan Jun 13, 2025
f14bd18
revert java version
delguan Jun 13, 2025
39eee0b
bump version java
delguan Jun 13, 2025
76a0a67
bump java version
delguan Jun 13, 2025
4d507d6
bump java version
delguan Jun 13, 2025
803eb0a
junit update
delguan Jun 20, 2025
8550f83
Move TiDE 1.0 Cloud Build to Github Action
delguan Mar 16, 2026
f45c9c1
Move TiDE 1.0 Cloud Build to Github Action
delguan Mar 16, 2026
55eb023
test github action
delguan Mar 16, 2026
9643d8a
github action test
delguan Mar 16, 2026
df4f17d
github action
delguan Mar 16, 2026
84de149
github action test
delguan Mar 16, 2026
873ee3f
test github action
delguan Mar 16, 2026
6a710fa
test github action
delguan Mar 16, 2026
e48175b
test github action
delguan Mar 16, 2026
b880464
test github action
delguan Mar 16, 2026
02283d2
test github action
delguan Mar 16, 2026
b8205bd
test
delguan Mar 16, 2026
9683343
test
delguan Mar 16, 2026
486d086
remove document build
delguan Mar 18, 2026
23e9368
skip maven
delguan Mar 18, 2026
b600231
update build
delguan Mar 18, 2026
39b3b8b
fix build
delguan Mar 18, 2026
54769f9
update beam version
delguan Mar 18, 2026
a1576b1
bump version
delguan Mar 18, 2026
dfcb636
remove cloud build
delguan Mar 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: build

on:
push:
branches:
- main
- dev
workflow_dispatch:

jobs:
build:
env:
REGISTRY: us-west1-docker.pkg.dev
IMAGE: ${{ vars.ARTIFACT_REGISTRY_REPO }}/tide
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

permissions:
contents: 'read'
id-token: 'write'

runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && !contains(github.event.head_commit.message, '!ignore')

steps:
- uses: actions/checkout@v4

- name: Get version from pom.xml
id: version
run: |
VERSION=$(grep -m1 '<version>' pom.xml | sed 's/[^>]*>\([^<]*\).*/\1/')
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
echo "Detected version: ${VERSION}"

- name: Authenticate with Google Cloud
id: auth
uses: google-github-actions/auth@v2
with:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'

- name: Set up Cloud SDK
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'

- name: Authenticate to GAR, get timestamp
id: docker
run: |
gcloud auth configure-docker ${{ env.REGISTRY }}
ts=$(date +%Y%m%d%H%M%S)
echo "BUILD_ID=build-${ts}" >> $GITHUB_OUTPUT
SAFE_BRANCH=$(echo "${{ env.BRANCH_NAME }}" | sed 's/\//-/g')
echo "SAFE_BRANCH=${SAFE_BRANCH}" >> $GITHUB_OUTPUT

- name: Build and push image
run: |
FULL_IMAGE=${{ env.IMAGE }}

docker build \
--build-arg DOCKER_TAG=${{ steps.docker.outputs.BUILD_ID }} \
--build-arg GITHUB_REF_NAME=${{ env.BRANCH_NAME }} \
--build-arg GITHUB_REF_TYPE=${{ github.ref_type }} \
-t ${FULL_IMAGE}:${{ steps.version.outputs.VERSION }} \
-t ${FULL_IMAGE}:${{ steps.docker.outputs.BUILD_ID }} \
-t ${FULL_IMAGE}:${{ steps.docker.outputs.SAFE_BRANCH }} \
-t ${FULL_IMAGE}:latest \
.

docker push --all-tags ${FULL_IMAGE}

- name: Create Build Summary
run: |
echo "## Docker Build Summary" >> $GITHUB_STEP_SUMMARY
echo "| Key | Value |" >> $GITHUB_STEP_SUMMARY
echo "|-----|-------|" >> $GITHUB_STEP_SUMMARY
echo "| Image | \`${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.version.outputs.VERSION }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Version | \`${{ steps.version.outputs.VERSION }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Build ID | \`${{ steps.docker.outputs.BUILD_ID }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Branch | \`${{ steps.docker.outputs.SAFE_BRANCH }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Commit | \`${{ github.sha }}\` |" >> $GITHUB_STEP_SUMMARY
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ target
local_deid
stanford-test-project-1-fa1533111732.json
output/

# Make sure .github is NOT ignored
!.github/
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM maven:3.9.0-eclipse-temurin-17-focal
FROM maven:3.9-eclipse-temurin-17-focal
# Do not replace Maven with a generic JRE or JDK since TiDE can be called by Maven

RUN apt update && apt -y install zip unzip curl

RUN mkdir /opt/deid
WORKDIR /opt/deid
COPY ./ /opt/deid

RUN mvn clean install -DskipTests
RUN mvn clean install -DskipTests \
-s maven/settings-docker.xml
#RUN mv target/deid-3.0.30-SNAPSHOT-jar-with-dependencies.jar /opt/deid/deid.jar

#CMD [ "java","-jar","/opt/deid/deid.jar" ]
Expand Down
16 changes: 0 additions & 16 deletions cloudbuild.yaml

This file was deleted.

24 changes: 24 additions & 0 deletions maven/settings-docker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<settings>
<profiles>
<profile>
<id>docker</id>
<repositories>
<repository>
<id>artifact-registry</id>
<url>artifactregistry://us-west1-maven.pkg.dev/som-rit-infrastructure-prod/starr-maven</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
<repository>
<id>artifact-registry-snapshot</id>
<url>artifactregistry://us-west1-maven.pkg.dev/som-rit-infrastructure-prod/starr-maven-snapshot</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>docker</activeProfile>
</activeProfiles>
</settings>
53 changes: 0 additions & 53 deletions maven/settings.xml

This file was deleted.

44 changes: 32 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
<name>Starr Core DeId Pipeline</name>
<groupId>com.github.susom</groupId>
<artifactId>deid</artifactId>
<version>3.0.36-SNAPSHOT</version>
<version>3.0.40-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<java.version>17</java.version>

<main.class>com.github.susom.starr.deid.Main</main.class>

<beam.version>2.56.0</beam.version>
<jackson.version>2.10.4</jackson.version>
<junit-jupiter.version>5.1.0</junit-jupiter.version>
<beam.version>2.71.0</beam.version>
<jackson.version>2.15.3</jackson.version>
<junit-jupiter.version>5.8.2</junit-jupiter.version>
<version.jopt.simple>5.0.4</version.jopt.simple>
<version.gcp.bigquery>1.135.4</version.gcp.bigquery>
</properties>
Expand Down Expand Up @@ -92,7 +92,7 @@
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-csv</artifactId>
<version>2.12.4</version>
<version>${jackson.version}</version>
</dependency>

<dependency>
Expand All @@ -101,6 +101,29 @@
<version>1.2</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dlp</artifactId>
Expand Down Expand Up @@ -131,10 +154,6 @@
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
Expand Down Expand Up @@ -244,7 +263,7 @@
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>1.1.10.1</version>
<version>1.1.10.4</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
Expand Down Expand Up @@ -299,10 +318,11 @@

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>3.10.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<release>17</release>
</configuration>
</plugin>

Expand Down
Loading