Skip to content

Commit

Permalink
Fix syntax error in file
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkleiven committed Nov 19, 2023
1 parent 0dcc488 commit ca0588d
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/dockerize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@ on:
types: [published]

jobs:
runs-on: ubuntu-latest
build-image:
- name: Checkout repo
uses: actions/checkout@v4
build-image-and-publish:
name: Publish Docker Image to Docker Hub
runs-on: ubuntu-latest
if: github.repository_owner == 'statnett'
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Dockerize
run: docker build -f ./Dockerfile -t load-flow-service:${{ github.event.release.tag_name }}
- name: Dockerize
run: docker build -f ./Dockerfile -t load-flow-service:${{ github.event.release.tag_name }}

- name: Publish
run: echo "No publishing action implemented"
- name: Publish
run: echo "No publishing action implemented"

0 comments on commit ca0588d

Please sign in to comment.