Build processor image #5
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 processor image | |
on: | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3.0.0 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build the Docker image | |
run: make processor | |
- name: Push tag | |
run: docker push ghcr.io/scc-digitalhub/digitalhub-serverless/processor:latest-amd64 | |
- name: Clean up | |
run: docker rmi ghcr.io/scc-digitalhub/digitalhub-serverless/processor:latest-amd64 | |
- name: Prune Docker | |
run: docker system prune -a -f |