Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 6831adb

Browse files
authored
add workflow to build/push llvm images (#793)
1 parent ec16256 commit 6831adb

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build llvm docker images
2+
3+
on:
4+
push:
5+
branches:
6+
master
7+
paths:
8+
- llvm/*
9+
- .github/workflows/build-llvm-images.yml
10+
pull_request:
11+
paths:
12+
- llvm/*
13+
- .github/workflows/build-llvm-images.yml
14+
15+
env:
16+
DOCKER_REGISTRY: "docker.io"
17+
DOCKER_BUILDKIT: 1
18+
DOCKER_ID: ${{ secrets.DOCKER_ID }}
19+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
20+
WITH_PUSH: ${{ github.event_name == 'push' }}
21+
FORCE_PUSH: yes
22+
23+
jobs:
24+
build:
25+
runs-on: linux.2xlarge
26+
steps:
27+
- name: Checkout PyTorch builder
28+
uses: actions/checkout@v2
29+
- name: Authenticate if WITH_PUSH
30+
run: |
31+
if [[ "${WITH_PUSH}" == true ]]; then
32+
echo "${DOCKER_TOKEN}" | docker login -u "${DOCKER_ID}" --password-stdin
33+
fi
34+
- name: Build Docker Image
35+
working-directory: llvm
36+
run: |
37+
./build.sh
38+
- name: Push image
39+
working-directory: llvm
40+
if: ${{ github.event_name == 'push' }}
41+
run: |
42+
./deploy.sh

0 commit comments

Comments
 (0)