This repository has been archived by the owner on Oct 5, 2024. It is now read-only.
build: replace ci img entrypoint with test bash script #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🔧 Build CI Img | |
on: | |
# Push includes PR merge | |
push: | |
branches: | |
- master | |
paths: | |
- docker/** | |
- .github/workflows/** | |
# Allow manual trigger | |
workflow_dispatch: | |
jobs: | |
underpass-ci-build: | |
uses: hotosm/gh-workflows/.github/workflows/[email protected] | |
with: | |
dockerfile: docker/underpass.dockerfile | |
scan_dockerfile: false | |
scan_image: false | |
build_target: ci | |
image_tags: | | |
"ghcr.io/${{ github.repository }}:ci" | |
invalidate-cache: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete CI Img Cache | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh extension install actions/gh-actions-cache | |
gh actions-cache delete image-cache-${{ runner.os }} \ | |
-R ${{ github.repository }} \ | |
-B ${{ github.ref_name }} \ | |
--confirm || true |