Skip to content

Merge pull request #18 from untitledaiproject/bart/readme-update #18

Merge pull request #18 from untitledaiproject/bart/readme-update

Merge pull request #18 from untitledaiproject/bart/readme-update #18

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Delete huge unnecessary tools folder
run: sudo rm -rf /opt/hostedtoolcache
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push backend image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: etown/untitledai:latest
platforms: linux/amd64,linux/arm64
- name: Build and push web image
uses: docker/build-push-action@v2
with:
context: ./clients/web
file: ./clients/web/Dockerfile
push: true
tags: etown/untitledai-web:latest
platforms: linux/amd64,linux/arm64