Skip to content

bump dev

bump dev #217

Workflow file for this run

name: Docker Hub
on:
push:
branches:
- main
jobs:
dockerhub:
name: Docker Hub
runs-on:
group: 'aws-general-8-plus'
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set short git commit SHA
id: vars
run: |
sha=$(git rev-parse --short ${{ github.sha }})
echo "SHA=$sha" >> $GITHUB_ENV
- name: SHA
run: echo ${{ env.SHA }}
- name: Build and Push Docker Image
run: |
docker build -t autotrain-advanced:latest .
docker tag autotrain-advanced:latest huggingface/autotrain-advanced:latest
docker tag autotrain-advanced:latest huggingface/autotrain-advanced:${{ env.SHA }}
docker push huggingface/autotrain-advanced:latest
docker push huggingface/autotrain-advanced:${{ env.SHA }}