-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.49 KB
/
build-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI/CD on PRs
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-and-push:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch_name }}
lfs: true
- name: Install Vulkan SDK
uses: jakoch/[email protected]
with:
vulkan_version: 1.3.268.0
optional_components: com.lunarg.vulkan.vma
install_runtime: true
cache: true
destination: ${{ github.workspace }}/vulkan-sdt
- name: Get latest commit SHA of the branch
id: get_commit_sha
run: echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Checkout NuGet PiXYZ package
uses: actions/checkout@v2
with:
repository: 'decentraland/PiXYZ-NuGetPackage'
token: ${{ secrets.PAT_NUGET_TOKEN }}
path: 'PiXYZ-NuGetPackage'
lfs: true
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build and push
id: docker_build
run: |
docker build --build-arg COMMIT_HASH=${{ github.sha }} --build-arg PIXYZ_PACKAGE=./PiXYZ-NuGetPackage --build-arg VULKAN_DLL_PATH=./vulkan-sdt/1.3.268.0/runtime/x64/vulkan-1.dll -t quay.io/decentraland/lods-generator:${{ github.sha }} .
docker push quay.io/decentraland/lods-generator:${{ github.sha }}