diff --git a/.github/workflows/mapstore.yml b/.github/workflows/mapstore.yml index 72dbb56ef..d792353c3 100644 --- a/.github/workflows/mapstore.yml +++ b/.github/workflows/mapstore.yml @@ -90,7 +90,7 @@ jobs: if: github.repository == 'geo2france/mapstore2-georchestra' run: | cp scratch/mapstore-${{ github.sha }}.war docker/MapStore-${{ steps.version.outputs.VERSION }}.war - docker build . -t ghcr.io/geo2france/mapstore2-georchestra/mapstore:${{ steps.version.outputs.VERSION }}-prod + docker build . -t ghcr.io/geo2france/mapstore2-georchestra/mapstore:${{ steps.version.outputs.VERSION }}-dev working-directory: ${{ github.workspace }} - name: Login to GitHub Container Registry if: github.repository == 'geo2france/mapstore2-georchestra' && github.event_name == 'push' @@ -100,14 +100,14 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: "Pushing 2023.02.xx-custom-prod to registry" - if: github.ref == 'refs/heads/2023.02.xx-custom-prod' && github.repository == 'geo2france/mapstore2-georchestra' && github.event_name == 'push' + - name: "Pushing 2023.02.xx-custom-dev to registry" + if: github.ref == 'refs/heads/2023.02.xx-custom-dev' && github.repository == 'geo2france/mapstore2-georchestra' && github.event_name == 'push' run: | - docker tag ghcr.io/geo2france/mapstore2-georchestra/mapstore:${{ steps.version.outputs.VERSION }}-prod ghcr.io/geo2france/mapstore2-georchestra/mapstore:2023.02.xx-custom-prod - docker push ghcr.io/geo2france/mapstore2-georchestra/mapstore:2023.02.xx-custom-prod + docker tag ghcr.io/geo2france/mapstore2-georchestra/mapstore:${{ steps.version.outputs.VERSION }}-dev ghcr.io/geo2france/mapstore2-georchestra/mapstore:2023.02.xx-custom-dev + docker push ghcr.io/geo2france/mapstore2-georchestra/mapstore:2023.02.xx-custom-dev working-directory: ${{ github.workspace }} - name: "Pushing tag to registry" if: contains(github.ref, 'refs/tags/') && github.repository == 'geo2france/mapstore2-georchestra' && github.event_name == 'push' run: | - docker push ghcr.io/geo2france/mapstore2-georchestra/mapstore:${{ steps.version.outputs.VERSION }}-prod + docker push ghcr.io/geo2france/mapstore2-georchestra/mapstore:${{ steps.version.outputs.VERSION }}-dev