|
36 | 36 | steps: |
37 | 37 | - name: Checkout repository |
38 | 38 | uses: actions/checkout@v3 |
| 39 | + |
| 40 | + - name: Tailscale |
| 41 | + uses: huggingface/tailscale-action@v1 |
| 42 | + with: |
| 43 | + authkey: ${{ secrets.TAILSCALE_AUTHKEY }} |
| 44 | + |
39 | 45 | - name: Initialize Docker Buildx |
40 | 46 | uses: docker/setup-buildx-action@v2.0.0 |
41 | 47 | with: |
42 | 48 | install: true |
| 49 | + config-inline: | |
| 50 | + [registry."docker.io"] |
| 51 | + mirrors = ["registry.github-runners.huggingface.tech"] |
| 52 | +
|
43 | 53 | - name: Configure sccache |
44 | 54 | uses: actions/github-script@v6 |
45 | 55 | with: |
46 | 56 | script: | |
47 | 57 | core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); |
48 | 58 | core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); |
| 59 | +
|
49 | 60 | - name: Inject slug/short variables |
50 | 61 | uses: rlespinasse/github-slug-action@v4.4.1 |
51 | | - - name: Tailscale |
52 | | - uses: huggingface/tailscale-action@v1 |
53 | | - with: |
54 | | - authkey: ${{ secrets.TAILSCALE_AUTHKEY }} |
| 62 | + |
55 | 63 | - name: Login to GitHub Container Registry |
56 | 64 | if: github.event_name != 'pull_request' |
57 | 65 | uses: docker/login-action@v2 |
58 | 66 | with: |
59 | 67 | registry: ghcr.io |
60 | 68 | username: ${{ github.actor }} |
61 | 69 | password: ${{ secrets.GITHUB_TOKEN }} |
| 70 | + |
62 | 71 | - name: Login to internal Container Registry |
63 | 72 | uses: docker/login-action@v2.1.0 |
64 | 73 | with: |
65 | 74 | username: ${{ secrets.TAILSCALE_DOCKER_USERNAME }} |
66 | 75 | password: ${{ secrets.TAILSCALE_DOCKER_PASSWORD }} |
67 | 76 | registry: registry.internal.huggingface.tech |
| 77 | + |
68 | 78 | - name: Extract metadata (tags, labels) for Docker |
69 | 79 | id: meta-rocm |
70 | 80 | uses: docker/metadata-action@v4.3.0 |
|
0 commit comments