diff --git a/.github/workflows/docker-cd.yml b/.github/workflows/docker-cd.yml index 465c27b2..f4eeac2e 100644 --- a/.github/workflows/docker-cd.yml +++ b/.github/workflows/docker-cd.yml @@ -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: @@ -29,6 +34,8 @@ jobs: build-docker: runs-on: ubuntu-latest + container: + image: ubuntu:22.04 env: IMAGE_NAME: ${{ github.repository }} REGISTRY: ghcr.io @@ -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/setup-buildx-action@v1.5.0 @@ -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: