Skip to content

Merge branch 'feature/import-issues-from-github' #31

Merge branch 'feature/import-issues-from-github'

Merge branch 'feature/import-issues-from-github' #31

Workflow file for this run

name: Build and Push
on:
push:
branches: [main]
paths-ignore:
- "README.md"
- "docs/**"
- "LICENSE"
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Set short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_ENV"
- name: Build image
run: |
docker build \
-t ${{ vars.REGISTRY }}/contextmatrix:${{ env.SHORT_SHA }} \
-t ${{ vars.REGISTRY }}/contextmatrix:latest \
.
- name: Push image
run: |
docker push ${{ vars.REGISTRY }}/contextmatrix:${{ env.SHORT_SHA }}
docker push ${{ vars.REGISTRY }}/contextmatrix:latest
- name: Clean up
if: always()
run: docker image prune -f