diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-31 11:17:50 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-31 11:17:50 +0530 |
commit | 112eae57aa3584511d88a4d54c8df9847feee448 (patch) | |
tree | 01fd49372e9efd993308086f7be16265433ea523 /.github/workflows | |
parent | 70cca3b2e7d45516b369bcc3d056093333dd62d9 (diff) |
added workflow
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/action.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..8e1c29d --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,34 @@ +name: USD-From-GLTF Build + +on: + push + +jobs: + docker-hub: + name: Deployment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Prepare + id: prepare + run: | + DOCKER_IMAGE=navanchauhan/usd-from-gltf + DOCKER_PLATFORMS=linux/amd64,linux/arm64 + VERSION=latest + TAGS="--tag ${DOCKER_IMAGE}:${VERSION}" + echo ::set-output name=docker_image::${DOCKER_IMAGE} + echo ::set-output name=version::${VERSION} + echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \ + --build-arg VERSION=${VERSION} \ + --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ + --build-arg VCS_REF=${GITHUB_SHA::8} \ + ${TAGS} --file ./Dockerfile ./ + - name: Prepare Buildx + uses: crazy-max/ghaction-docker-buildx@v3 + - name: Docker Login + env: + DOCKER_USERNAME: ${{ secrets.DOCKER_HUB_USER }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_TOKEN }} + run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin + - name: Docker Buildx (push) + run: docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} |