Build and Publish Unstructured Docker Image #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 and Publish Unstructured Docker Image | |
on: | |
workflow_dispatch: | |
env: | |
REGISTRY_BASE: ragtoriches | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install toml package | |
run: pip install toml | |
- name: Determine version | |
id: version | |
run: | | |
echo "REGISTRY_IMAGE=${{ env.REGISTRY_BASE }}/unst-prod" >> $GITHUB_OUTPUT | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker Auth | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.RAGTORICHES_DOCKER_UNAME }} | |
password: ${{ secrets.RAGTORICHES_DOCKER_TOKEN }} | |
- name: Build and push image | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./py | |
file: ./py/Dockerfile.unstructured | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ steps.version.outputs.REGISTRY_IMAGE }}:latest | |
provenance: false | |
sbom: false | |
- name: Verify manifest | |
run: | | |
docker buildx imagetools inspect ${{ steps.version.outputs.REGISTRY_IMAGE }}:latest |