add github action

This commit is contained in:
2023-12-30 16:46:13 +01:00
parent 695f451763
commit 6ca462e2d2
21 changed files with 325 additions and 216 deletions

25
.github/workflows/docker-build.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Build and Push Docker Image
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: luki42
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t luki42/aurcache:latest .
docker push luki42/aurcache:latest