diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4537e3e..c3841ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,13 +10,14 @@ on: jobs: versionning: + name: Versionning runs-on: ubuntu-latest outputs: version: ${{ steps.snapshot.outputs.version }} release: ${{ steps.release.outputs.version }} steps: - name: Checkout - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: ref: ${{ github.ref }} fetch-depth: 0 @@ -77,3 +78,38 @@ jobs: - run: npx @aneoconsultingfr/order-github-release-notes env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + docker: + name: Docker image Build + runs-on: ubuntu-latest + needs: + - versionning + strategy: + fail-fast: false + matrix: + image: + - { path: pdc-update, name: armonik-pdc-update, platforms: "linux/amd64" } + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + + - name: login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_HUB_LOGIN }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + file: "${{ matrix.image.path }}/Dockerfile" + context: "${{ matrix.image.path }}" + platforms: "${{ matrix.image.platforms }}" + push: true + tags: | + dockerhubaneo/${{ matrix.image.name }}:${{ github.ref_name }}