Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
r-dvl committed Mar 10, 2024
1 parent cf4d28e commit 69f054d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Push Docker images

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Builder
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push API image
uses: docker/build-push-action@v2
with:
context: ./api
push: true
tags: ghcr.io/r-dvl/${{ github.repository }}/bandanize-api:latest

- name: Build and push UI image
uses: docker/build-push-action@v2
with:
context: ./ui
push: true
tags: ghcr.io/r-dvl/${{ github.repository }}/bandanize-ui:latest

0 comments on commit 69f054d

Please sign in to comment.