Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Push the backend docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
plamentotev authored Oct 20, 2023
1 parent 14331c4 commit 7222b95
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

permissions:
contents: read
packages: write

jobs:
build-backend:
Expand All @@ -22,8 +23,15 @@ jobs:
with:
build-root-directory: backend
arguments: build
- name: Build backend docker image
- name: Docker login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push backend docker image
run: |
pushd backend
docker build -t carbon-criters-backend:latest .
docker build -t ghcr.io/Mosquito-Bytes/carbon-criters-backend:latest .
docker push ghcr.io/Mosquito-Bytes/carbon-criters-backend:latest
popd

0 comments on commit 7222b95

Please sign in to comment.