From b0a3e48b8e7554209f721414ac142b58c1ec2447 Mon Sep 17 00:00:00 2001 From: vorbildunternehmer Date: Wed, 26 Jun 2024 09:52:03 +0200 Subject: [PATCH] new version 1.6.5 --- .github/workflows/deploy.yml | 37 +++++++++++++++++++ .../install/obsidian/install_obsidian.sh | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..0a3764e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: Build and Push Docker image + +on: + push: + branches: + - master + +jobs: + build_and_push: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Log in to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Extract Obsidian Version + id: vars + run: | + version=$(grep 'OBSIDIAN_VERSION=' src/ubuntu/install/obsidian/install_obsidian.sh | cut -d '=' -f 2) + echo "Obsidian version is $version" + echo "::set-output name=version::$version" + + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + push: true + tags: | + vorbildunternehmer/kasm_obsidian:${{ steps.vars.outputs.version }} + vorbildunternehmer/kasm_obsidian:latest diff --git a/src/ubuntu/install/obsidian/install_obsidian.sh b/src/ubuntu/install/obsidian/install_obsidian.sh index 0fcbe88..a6c0c42 100644 --- a/src/ubuntu/install/obsidian/install_obsidian.sh +++ b/src/ubuntu/install/obsidian/install_obsidian.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -OBSIDIAN_VERSION=1.6.3 +OBSIDIAN_VERSION=1.6.5 apt-get update apt install xdg-utils -y