Skip to content

Commit

Permalink
fix actions, fix Dockerfile, update Obsidian to latest version 1.7.7 (#…
Browse files Browse the repository at this point in the history
…107)

* update Dockerfile

* update Dockerfile.arm64

* update workflows
  • Loading branch information
theinhumaneme authored Jan 15, 2025
1 parent fbb7a13 commit 2625d85
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: dockerfile.amd64
file: Dockerfile
platforms: linux/amd64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:buildcache_amd64
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:buildcache_amd64,mode=max

# - name: Build and push Docker images
# uses: docker/build-push-action@v5
#with:
#context: .
#file: dockerfile.arm64
#platforms: linux/arm64
#push: true
#tags: ${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:arm64
#labels: ${{ steps.meta.outputs.labels }}
#cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:buildcache_arm64
#cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:buildcache_arm64,mode=max
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.arm64
platforms: linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:arm64
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:buildcache_arm64
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/obsidian-remote:buildcache_arm64,mode=max
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm

LABEL maintainer="github@sytone.com" \
org.opencontainers.image.authors="github@sytone.com" \
Expand All @@ -7,7 +7,7 @@ LABEL maintainer="github@sytone.com" \
org.opencontainers.image.description="Hosted Obsidian instance allowing access via web browser"

# Set version label
ARG OBSIDIAN_VERSION=1.7.4
ARG OBSIDIAN_VERSION=1.7.7

# Update and install extra packages
RUN echo "**** install packages ****" && \
Expand Down Expand Up @@ -38,4 +38,4 @@ EXPOSE 8080 8443
VOLUME ["/config","/vaults"]

# Define a healthcheck
HEALTHCHECK CMD /bin/sh -c 'if [ -z "$CUSTOM_USER" ] || [ -z "$PASSWORD" ]; then curl --fail http://localhost:8080/ || exit 1; else curl --fail --user "$CUSTOM_USER:$PASSWORD" http://localhost:8080/ || exit 1; fi'
HEALTHCHECK CMD /bin/sh -c 'if [ -z "$CUSTOM_USER" ] || [ -z "$PASSWORD" ]; then curl --fail http://localhost:8080/ || exit 1; else curl --fail --user "$CUSTOM_USER:$PASSWORD" http://localhost:8080/ || exit 1; fi'
4 changes: 2 additions & 2 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-debianbookworm

LABEL maintainer="github@sytone.com" \
org.opencontainers.image.authors="github@sytone.com" \
Expand All @@ -7,7 +7,7 @@ LABEL maintainer="github@sytone.com" \
org.opencontainers.image.description="Hosted Obsidian instance allowing access via web browser"

# Set version label
ARG OBSIDIAN_VERSION=1.7.4
ARG OBSIDIAN_VERSION=1.7.7
ARG ARCH=arm64

# Update and install extra packages
Expand Down

0 comments on commit 2625d85

Please sign in to comment.