Skip to content

Commit

Permalink
release 23.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Dec 6, 2023
1 parent 96d530e commit eac61c7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,29 @@ jobs:
name: gn-ogc-api-records.jar
path: modules/services/ogc-api-records/target/gn-ogc-api-records.jar

- name: Getting image tag
if: github.repository == 'georchestra/geonetwork-microservices'
id: version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

- name: "Generate a docker image"
if : github.repository == 'georchestra/geonetwork-microservices' && github.ref == 'refs/heads/geor-main'
run : docker build -f Dockerfile-ogc-api-records -t georchestra/gn-cloud-ogc-api-records-service:latest .
run : docker build -f Dockerfile-ogc-api-records -t georchestra/gn-cloud-ogc-api-records-service:${{ steps.version.outputs.VERSION }} .

- name: "Login onto docker.io"
uses: azure/docker-login@v1
if: github.repository == 'georchestra/geonetwork-microservices' && github.ref == 'refs/heads/geor-main'
if: github.repository == 'georchestra/geonetwork-microservices' && github.event_name == 'push'
with:
username: '${{ secrets.DOCKER_HUB_USERNAME }}'
password: '${{ secrets.DOCKER_HUB_PASSWORD }}'

- name: "publish the docker image on docker-hub"
- name: "publish latest docker image on docker-hub"
if: github.repository == 'georchestra/geonetwork-microservices' && github.ref == 'refs/heads/geor-main'
run: |
docker tag georchestra/gn-cloud-ogc-api-records-service:${{ steps.version.outputs.VERSION }} georchestra/gn-cloud-ogc-api-records-service:latest
docker push docker.io/georchestra/gn-cloud-ogc-api-records-service:latest
- name: "Pushing tag to docker.io"
if: contains(github.ref, 'refs/tags/') && github.repository == 'georchestra/geonetwork-microservices' && github.event_name == 'push'
run: |
docker push georchestra/gn-cloud-ogc-api-records-service:${{ steps.version.outputs.VERSION }}

0 comments on commit eac61c7

Please sign in to comment.