Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/build_latest_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: |
cd docker
docker build -t ghcr.io/coleifer/sqlite-web:latest .
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
username: ${{ github.repository_owner }}
password: ${{secrets.GITHUB_TOKEN}}
- name: Upload latest container to registry
run: docker push ghcr.io/coleifer/sqlite-web:latest
- name: Build and push multi-arch images
uses: docker/build-push-action@v5
with:
context: ./docker
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository_owner }}/sqlite-web:latest
19 changes: 12 additions & 7 deletions .github/workflows/build_release_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: |
cd docker
docker build -t ghcr.io/coleifer/sqlite-web:${{ github.ref_name }} .
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
username: ${{ github.repository_owner }}
password: ${{secrets.GITHUB_TOKEN}}
- name: Upload versioned container to registry
run: docker push ghcr.io/coleifer/sqlite-web:${{ github.ref_name }}
- name: Build and push multi-arch images
uses: docker/build-push-action@v5
with:
context: ./docker
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository_owner }}/sqlite-web:${{github.ref_name}}
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ EXPOSE 8080
VOLUME /data
WORKDIR /data
SHELL ["/bin/ash", "-c"]
CMD sqlite_web -H 0.0.0.0 -x $SQLITE_DATABASE
CMD sqlite_web -H 0.0.0.0 -x $SQLITE_DATABASE --url-prefix ${URL_PREFIX:-/}