Fix cli/package to use reponse_bodies #71
This file contains hidden or 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 Latest | |
on: | |
workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions | |
push: | |
branches: [ main ] # This watches pushes to the "main" branch | |
env: | |
UUID: ${{ github.run_id }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build image and push to GitHub Container Registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: 'ghcr.io/mlibrary/dor-py/dor-py:${{ github.sha }}, ghcr.io/mlibrary/dor-py/dor-py:latest' | |
file: Dockerfile | |
target: production | |
platforms: linux/amd64, linux/arm64 |