Skip to content

chore(deps): update dependency pmtiles to v3.4.1 #316

chore(deps): update dependency pmtiles to v3.4.1

chore(deps): update dependency pmtiles to v3.4.1 #316

name: Docker Image Deployment CICD
on:
push:
branches: [ "main" ]
tags: ['v*']
pull_request:
env:
IMAGE_NAME: ${{ github.event.repository.name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log into ACR
uses: docker/login-action@v3
with:
registry: ${{ secrets.ACR_ENDPOINT }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.ACR_ENDPOINT }}/${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')}}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# This job is going to trigger an event named `bump-pipeline-version`
# on undp-data/geohub repo in order to make a PR to bump version of data pipeline to AKS
- name: dispatch event to GeoHub repo to create release PR
uses: peter-evans/repository-dispatch@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
repository: undp-data/geohub
# https://www.eliostruyf.com/dispatch-github-action-fine-grained-personal-access-token/
# need scopes of metadata and contents
# created `geohub-data-pipeline-bump` token which will be expired on 17 November 2024
token: ${{ secrets.GEOHUB_REPO_DISPATCH_TOKEN }}
event-type: bump-pipeline-version