Merge pull request #6 from jaypatel1210/firefetch-fix #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |