Skip to content

Commit

Permalink
feat: set workflow to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Jul 18, 2024
1 parent 98f9d89 commit 98e21d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/mapstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

0 comments on commit 98e21d2

Please sign in to comment.