Skip to content

Commit 839a445

Browse files
committed
fix rocm workflow
1 parent 2d2325c commit 839a445

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/build_rocm.yaml

+14-4
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,45 @@
3636
steps:
3737
- name: Checkout repository
3838
uses: actions/checkout@v3
39+
40+
- name: Tailscale
41+
uses: huggingface/tailscale-action@v1
42+
with:
43+
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
44+
3945
- name: Initialize Docker Buildx
4046
uses: docker/[email protected]
4147
with:
4248
install: true
49+
config-inline: |
50+
[registry."docker.io"]
51+
mirrors = ["registry.github-runners.huggingface.tech"]
52+
4353
- name: Configure sccache
4454
uses: actions/github-script@v6
4555
with:
4656
script: |
4757
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
4858
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
59+
4960
- name: Inject slug/short variables
5061
uses: rlespinasse/[email protected]
51-
- name: Tailscale
52-
uses: huggingface/tailscale-action@v1
53-
with:
54-
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
62+
5563
- name: Login to GitHub Container Registry
5664
if: github.event_name != 'pull_request'
5765
uses: docker/login-action@v2
5866
with:
5967
registry: ghcr.io
6068
username: ${{ github.actor }}
6169
password: ${{ secrets.GITHUB_TOKEN }}
70+
6271
- name: Login to internal Container Registry
6372
uses: docker/[email protected]
6473
with:
6574
username: ${{ secrets.TAILSCALE_DOCKER_USERNAME }}
6675
password: ${{ secrets.TAILSCALE_DOCKER_PASSWORD }}
6776
registry: registry.internal.huggingface.tech
77+
6878
- name: Extract metadata (tags, labels) for Docker
6979
id: meta-rocm
7080
uses: docker/[email protected]

0 commit comments

Comments
 (0)