Skip to content

Build New Version

Build New Version #144

Workflow file for this run

name: Build New Version
on:
schedule:
- cron: 0 0 * * 5
workflow_dispatch: {}
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract latest available Cura Version
id: version
run: echo "version=$(sh get_release_info.sh version)" |tee -a $GITHUB_OUTPUT
- name: Check if this release already exists
uses: mukunku/[email protected]
id: checktag
with:
tag: ${{ steps.version.outputs.version }}
- name: Create new tag with Cura Version
uses: rickstaa/action-create-tag@v1
id: tag_create
if: ${{ steps.checktag.outputs.exists == 'false' }}
with:
tag: ${{ steps.version.outputs.version }}
tag_exists_error: false
message: New Cura Release ${{ steps.version.outputs.version }}
- name: Build and push Container
uses: docker/build-push-action@v4
if: ${{ steps.checktag.outputs.exists == 'false' }}
with:
context: .
push: true
tags: mikeah/cura-novnc:latest, mikeah/cura-novnc:${{ steps.version.outputs.version }}