Skip to content

Merge pull request #6 from jaypatel1210/firefetch-fix #5

Merge pull request #6 from jaypatel1210/firefetch-fix

Merge pull request #6 from jaypatel1210/firefetch-fix #5

name: FireFetch Docker Image CI
on:
push:
branches: ['main']
paths:
- firefetch/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Generate Docker tag
id: docker_tag
run: echo "tag=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build the Docker image
run: docker build firefetch --file firefetch/Dockerfile --tag jaypatel1210/firefetch:${{ steps.docker_tag.outputs.tag }}
- name: Push the Docker image
run: docker push jaypatel1210/firefetch:${{ steps.docker_tag.outputs.tag }}