Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
glegendre01 authored Jul 10, 2024
0 parents commit baa88eb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: # yamllint disable-line rule:truthy
workflow_dispatch:

name: Copy Distribution
jobs:
copy:
name: Copy to registry
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Update values
run: |
docker pull rtrompier/distribution:v2-sha-extension
docker tag rtrompier/distribution:v2-sha-extension ghcr.io/huggingface/distribution-v2/distribution:v2-sha-extension
docker push ghcr.io/huggingface/distribution-v2/distribution:v2-sha-extension

0 comments on commit baa88eb

Please sign in to comment.