Skip to content

Commit

Permalink
fix: github actions and Jenkinsfile build
Browse files Browse the repository at this point in the history
  • Loading branch information
ssthom committed Nov 13, 2024
1 parent 9afdbab commit f1b2c91
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docker-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ env:
jobs:
build-maven:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .git folder
run: |
git config --global --add safe.directory "$(pwd)"
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -29,6 +34,8 @@ jobs:

build-docker:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
env:
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io
Expand All @@ -49,7 +56,10 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y git
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .git folder
run: |
git config --global --add safe.directory "$(pwd)"
- name: Set up Docker Buildx
uses: docker/[email protected]
Expand All @@ -71,6 +81,8 @@ jobs:
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit f1b2c91

Please sign in to comment.