generate: Put results in s3 #9
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: Publish Docker image | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
push_to_registries: | |
name: Push Docker image to GHCR | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for bot image | |
id: bot_meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
ghcr.io/${{ github.repository }}/instruct-lab-bot | |
- name: Build and push bot image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: Dockerfile | |
push: true | |
tags: ${{ steps.bot_meta.outputs.tags }} | |
labels: ${{ steps.bot_meta.outputs.labels }} | |
- name: Extract metadata (tags, labels) for labserve image | |
id: labserve_meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
ghcr.io/${{ github.repository }}/instruct-lab-serve | |
- name: Build and push serve image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: Dockerfile.serve | |
push: true | |
tags: ${{ steps.labserve_meta.outputs.tags }} | |
labels: ${{ steps.labserve_meta.outputs.labels }} |