Skip to content

Commit

Permalink
docker actions v2
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 16, 2024
1 parent 1c9e953 commit a236745
Showing 1 changed file with 10 additions and 51 deletions.
61 changes: 10 additions & 51 deletions .github/workflows/docker-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,17 @@ on:
push:
branches:
- feat/cd
# workflow_call:
# inputs:
# service-name:
# required: true
# type: string
# image-name:
# required: false
# type: string
# deployment-environment:
# required: false
# type: string
# docker-tag:
# required: false
# type: string
# default: next
# build-args:
# required: false
# type: string
# layers:
# required: false
# type: boolean
# default: true
# dockerfile-url:
# required: false
# type: string
# secrets:
# QUAY_USERNAME:
# required: true
# QUAY_TOKEN:
# required: true
# outputs:
# registry-path:
# description: "Registry path"
# value: ${{ jobs.quay-build-push.registry-path }}
# registry-paths:
# description: "Registry paths (JSON)"
# value: ${{ jobs.quay-build-push.registry-paths }}

jobs:
quay-build-push:
runs-on: windows-2019
outputs:
registry-path: ${{ steps.push-to-quay.outputs.registry-path }}
registry-paths: ${{ steps.push-to-quay.outputs.registry-paths }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Install Vulkan SDK
uses: jakoch/[email protected]
with:
Expand All @@ -63,16 +29,9 @@ jobs:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
tags: quay.io/decentraland/lods-generator:next,quay.io/decentraland/lods-generator:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
COMMIT_HASH=${{ github.sha }}
VULKAN_DLL_PATH=./vulkan-sdt/1.3.268.0/runtime/x64/vulkan-1.dll
run: |
docker build --build-arg COMMIT_HASH=${{ github.sha }} --build-arg VULKAN_DLL_PATH=./vulkan-sdt/1.3.268.0/runtime/x64/vulkan-1.dll -t quay.io/decentraland/lods-generator:next -t quay.io/decentraland/lods-generator:${{ github.sha }} .
docker push quay.io/decentraland/lods-generator:next
docker push quay.io/decentraland/lods-generator:${{ github.sha }}

0 comments on commit a236745

Please sign in to comment.