build image #7
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 image | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/[email protected] | |
| - name: docker setup qemy | |
| uses: docker/[email protected] | |
| - name: setup docker buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: load 1pass | |
| id: load-1pass | |
| uses: 1password/load-secrets-action@v3 | |
| env: | |
| OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
| QUAY_USERNAME: "op://GitHub Actions/registry-creds/QUAY_USERNAME" | |
| QUAY_PASSWORD: "op://GitHub Actions/registry-creds/QUAY_PASSWORD" | |
| - name: login to quay | |
| uses: docker/[email protected] | |
| with: | |
| username: "${{ steps.load-1pass.outputs.QUAY_USERNAME }}" | |
| password: "${{ steps.load-1pass.outputs.QUAY_PASSWORD }}" | |
| registry: quay.io | |
| - name: build and push | |
| uses: docker/[email protected] | |
| with: | |
| platforms: linux/arm64,linux/amd64 | |
| push: true | |
| tags: quay.io/activeloop/prerender:latest,quay.io/activeloop/prerender:alpine |