update default scaling for cj output #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Builder Image | |
on: | |
push: | |
branches: | |
- 'develop' | |
paths-ignore: | |
- '**.md' | |
- '**.rst' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set docker image tag to 'develop' | |
run: echo "DOCKER_TAG=develop" >> $GITHUB_ENV | |
- name: Set docker image tag to git tag | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: echo "DOCKER_TAG=${{ github.ref_name }}" >> $GITHUB_ENV | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./ | |
file: ./docker/Dockerfile | |
builder: ${{ steps.buildx.outputs.name }} | |
build-args: | | |
JOBS=2 | |
VERSION=${{ env.DOCKER_TAG }} | |
push: true | |
tags: 3dgi/roofer:${{ env.DOCKER_TAG }} | |
cache-from: type=registry,ref=3dgi/roofer:buildcache | |
cache-to: type=registry,ref=3dgi/roofer:buildcache,mode=max |