Skip to content

Build and publish graphhopper image #979

Build and publish graphhopper image

Build and publish graphhopper image #979

# This is a basic workflow to help you get started with Actions
name: Build and publish graphhopper image
on:
schedule:
- cron: 0 1 * * *
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
rebuild-all:
type: boolean
description: rebuild all images
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
permissions:
contents: read
jobs:
# This workflow contains a single job called "build"
build-and-publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Runs a single command using the runners shell
- name: Run a one-line script
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
REBUILD_ALL: ${{ github.event.inputs.rebuild-all == 'true' }}
run: ./.github/build-and-upload-v2.sh