Skip to content

Commit

Permalink
Add github workflow to build images
Browse files Browse the repository at this point in the history
  • Loading branch information
meytin1337 committed Dec 15, 2023
1 parent b91c5db commit c142cb7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# on:
# push:
# branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

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

- name: Build and push frontend image
uses: docker/build-push-action@v2
with:
context: frontend/
push: true
tags: ghcr.io/${{ github.repository_owner }}/youtube-dj/frontend

- name: Build and push backend image
uses: docker/build-push-action@v2
with:
context: frontend/
push: true
tags: ghcr.io/${{ github.repository_owner }}/youtube-dj/backend

0 comments on commit c142cb7

Please sign in to comment.