Publish integration #3
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
name: Publish integration | |
env: | |
IMAGE_NAME: benchscape-integration-frontend | |
CONTEXT: ./frontend/ | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Log in to GitHub container registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: 'maven' | |
- name: Build with Maven | |
run: ./mvnw verify -P npm-integration-build | |
- name: Build and push container image to registry | |
run: | | |
cd frontend | |
docker build . --tag ghcr.io/openelements/${{ env.IMAGE_NAME }} | |
docker push ghcr.io/openelements/${{ env.IMAGE_NAME }} |