Skip to content

ci

ci #43

Workflow file for this run

name: ci
on:
push:
branches: [ "main" ]
commit-ignore:
- [skip ci]
- [ci skip]
workflow_dispatch:
jobs:
build-bot:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: ./src
file: ./src/Utili.Bot/Dockerfile
platforms: linux/amd64,linux/arm64
tags: 230daniel/utili-bot:latest
push: true
build-backend:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: ./src
file: ./src/Utili.Backend/Dockerfile
platforms: linux/amd64,linux/arm64
tags: 230daniel/utili-backend:latest
push: true
build-frontend:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: ./src/Frontend
file: ./src/Frontend/Dockerfile
platforms: linux/amd64,linux/arm64
tags: 230daniel/utili-frontend:latest
push: true