-
Notifications
You must be signed in to change notification settings - Fork 44
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 #556 from usdot-jpo-ode/release/2024-q3
Merge release/2024-q3 into master for Q3 release
- Loading branch information
Showing
113 changed files
with
1,694 additions
and
25,999 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish Java Package | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'jpo-ode-*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'adopt' | ||
|
||
- name: Remove snapshot from version | ||
run: mvn versions:set -DremoveSnapshot | ||
|
||
- name: Build with Maven | ||
run: mvn -B clean package --file pom.xml -DskipTests -Ppackage-jar | ||
|
||
- name: Publish to GitHub Packages | ||
run: mvn --batch-mode -Dgithub_organization=${{ github.repository_owner }} deploy -DskipTests -Ppackage-jar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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,33 +1,38 @@ | ||
default: | ||
$(info Make target options:) | ||
$(info `make start` to build and run the ODE) | ||
$(info `make start` to run the ODE) | ||
$(info `make build` to build the ODE) | ||
$(info `make stop` to stop the ODE) | ||
$(info `make delete` to destroy the current Docker containers) | ||
$(info `make delete` to stop the ODE and remove the volumes) | ||
$(info `make rebuild` to stop, delete, and then rebuild the containers) | ||
$(info `make clean-build` to rebuild the containers without using the cache) | ||
|
||
start: | ||
ifeq ("$(wildcard ./jpo-ode-private)", "") | ||
$(error "ERROR: Directory `jpo-ode-private` not found in ${PWD}") | ||
endif | ||
ifeq ("$(wildcard ./asn1_codec/asn1c_combined/J2735_201603DA.ASN)", "") | ||
cp ./jpo-ode-private/j2735/J2735_201603DA.ASN ./asn1_codec/asn1c_combined/J2735_201603DA.ASN | ||
endif | ||
ifndef DOCKER_HOST_IP | ||
$(error ERROR: Environment variable DOCKER_HOST_IP is not set) | ||
ifeq ("$(wildcard .env)", "") | ||
$(error "ERROR: jpo-ode Environment file `.env` not found in ${PWD}") | ||
endif | ||
ifndef DOCKER_SHARED_VOLUME | ||
$(error ERROR: Environment variable DOCKER_SHARED_VOLUME is not set) | ||
ifeq ("$(wildcard ./jpo-utils/.env)", "") | ||
$(error "ERROR: jpo-utils Environment file `.env` not found in ${PWD}") | ||
endif | ||
docker compose up -d | ||
|
||
build: | ||
ifeq ("$(wildcard .env)", "") | ||
$(warning "WARNING: Environment file `.env` not found in ${PWD}") | ||
$(error "ERROR: jpo-ode Environment file `.env` not found in ${PWD}") | ||
endif | ||
ifeq ("$(wildcard ./jpo-utils/.env)", "") | ||
$(error "ERROR: jpo-utils Environment file `.env` not found in ${PWD}") | ||
endif | ||
docker-compose up --build -d | ||
docker compose build | ||
|
||
stop: | ||
docker-compose down | ||
docker compose down | ||
|
||
delete: | ||
docker-compose rm -fvs | ||
docker compose down -v | ||
|
||
rebuild: | ||
$(MAKE) stop delete start | ||
$(MAKE) stop delete build start | ||
|
||
clean-build: | ||
docker compose build --no-cache |
Oops, something went wrong.