Skip to content

Commit ed7b93f

Browse files
PrincekumarofficialSoniHarsh1JXP25
authored
Docker-image build on ghcr (#277)
* fix the headings of the Job Table in Recruiter View (#267) * Revert "Add Sentry integration for error tracking and monitoring" (#251) * Revert "Add Sentry integration for error tracking and monitoring (#244)" This reverts commit 5a603ee. * fix the headings of the Job Table in Recruiter View (#267) --------- Co-authored-by: Jai Pannu <142983705+JaiPannu-IITI@users.noreply.github.com> Co-authored-by: Harsh Soni <98403303+SoniHarsh1@users.noreply.github.com> * Add GitHub Actions workflow for Docker build and publish * Fix Docker image name formatting in GitHub Actions workflow --------- Co-authored-by: Harsh Soni <98403303+SoniHarsh1@users.noreply.github.com> Co-authored-by: Jai Pannu <142983705+JaiPannu-IITI@users.noreply.github.com>
1 parent ab9d206 commit ed7b93f

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build & Publish to GHCR
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
9+
permissions:
10+
contents: read
11+
packages: write
12+
id-token: write
13+
14+
env:
15+
REGISTRY: ghcr.io
16+
IMAGE: ${{ github.repository_owner }}/tpc-frontend
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
27+
- name: Log in to GHCR
28+
uses: docker/login-action@v3
29+
with:
30+
registry: ${{ env.REGISTRY }}
31+
username: ${{ github.actor }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Docker metadata
35+
id: meta
36+
uses: docker/metadata-action@v5
37+
with:
38+
images: ${{ env.REGISTRY }}/${{ env.IMAGE }}
39+
tags: |
40+
type=ref,event=branch
41+
42+
- name: Build & push
43+
uses: docker/build-push-action@v5
44+
with:
45+
context: .
46+
push: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)