Skip to content

fix: Updated pixyz license (#157) #121

fix: Updated pixyz license (#157)

fix: Updated pixyz license (#157) #121

Workflow file for this run

name: CI/CD on main branch
on:
push:
branches:
- "main"
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: 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 }} -t quay.io/decentraland/lods-generator:next .
docker push quay.io/decentraland/lods-generator:${{ github.sha }}
docker push quay.io/decentraland/lods-generator:next
deployment:
needs: [build-and-push]
name: "Deploy to: dev"
runs-on: ubuntu-latest
steps:
- name: Trigger deployment
id: deploy
uses: decentraland/dcl-deploy-action@main
with:
dockerImage: "quay.io/decentraland/lods-generator:${{ github.sha }}"
serviceName: lods-generator
env: dev
token: ${{ secrets.GITHUB_TOKEN }}