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

Commit

Permalink
feat: added docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalSin9h committed May 24, 2024
1 parent fa5ffb0 commit 1ff7c37
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build docker images

on:
workflow_dispatch:

permissions:
contents: write
packages: write

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git fetch --force --tags

- name: Set outputs
id: vars
run: echo "::set-output name=latest_tag::$(git describe --tags --abbrev=0)"

- name: Check outputs
run: echo ${{ steps.vars.outputs.latest_tag }}

- name: build docker image
run: |
docker build -t ghcr.io/indiabuild/ibtech:${{ steps.vars.outputs.latest_tag }} .
- name: push docker image
run: |
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u "kunalsin9h" --password-stdin
docker push ghcr.io/indiabuild/ibtech:${{ steps.vars.outputs.latest_tag }}

0 comments on commit 1ff7c37

Please sign in to comment.