Add GitHub Actions Docker build workflow, remove vim from Dockerfile

This commit is contained in:
End 2026-04-01 19:54:39 -07:00
parent 01fc60e816
commit 628d74e04a
No known key found for this signature in database
2 changed files with 27 additions and 1 deletions

27
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Build and push Docker image
on:
push:
branches: [OAuth_Delegated_Token]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/system-end/hackatime:latest
cache-from: type=gha
cache-to: type=gha,mode=max

View file

@ -23,7 +23,6 @@ RUN apt-get update -qq && \
sqlite3 \
libpq5 \
unzip \
vim \
wget && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives