Skip to content

ci(deps): bump actions/checkout from 4 to 6 (#1) #14

ci(deps): bump actions/checkout from 4 to 6 (#1)

ci(deps): bump actions/checkout from 4 to 6 (#1) #14

Workflow file for this run

name: Build & Push to GHCR
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build & push backend
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: |
ghcr.io/kushvinth/zell:latest-backend
ghcr.io/kushvinth/zell:${{ github.sha }}-backend
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build & push frontend
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: |
ghcr.io/kushvinth/zell:latest-frontend
ghcr.io/kushvinth/zell:${{ github.sha }}-frontend
cache-from: type=gha
cache-to: type=gha,mode=max