Skip to content

Commit

Permalink
Create build-backend.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Highfire1 authored Jan 21, 2024
1 parent df1b6ce commit 7583ad4
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on:
push:
branches:
- 'main'

jobs:

docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Build and push
uses: docker/build-push-action@v4
with:
context: backend/src
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/rishit-singh/resumeriftdevops:latest
# deployment:
# needs: docker
# runs-on: ubuntu-latest
# steps:
# - name: Deploy docker package on LCSC server (its the most convenient way we have to quickly deploy docker containers)
# uses: fjogeleit/http-request-action@v1
# with:
# url: 'https://watchtower.langaracs.tech/v1/update'
# method: 'GET'
# bearerToken: ${{ secrets.WATCHTOWER_HTTP_API_TOKEN }}

0 comments on commit 7583ad4

Please sign in to comment.