Skip to content

1.1.8

1.1.8 #22

Workflow file for this run

name: Publish 'latest' image
on:
release:
types:
- "created"
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:latest .
docker push quay.io/decentraland/lods-generator:${{ github.sha }}
docker push quay.io/decentraland/lods-generator:latest
deployment:
needs: [build-and-push]
name: "Deploy to: prd"
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: prd
token: ${{ secrets.GITHUB_TOKEN }}