Skip to content

Commit

Permalink
ci: add workflow to build ci img
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 6, 2025
1 parent 9169255 commit a85023c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build_ci_img.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 🔧 Build CI Img

on:
push:
branches:
- main
paths:
# Workflow is triggered only if deps change
- "pyproject.toml"
- "Dockerfile"
# Allow manual trigger
workflow_dispatch:

jobs:
backend-ci-build:
uses: hotosm/gh-workflows/.github/workflows/[email protected]
with:
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

0 comments on commit a85023c

Please sign in to comment.