Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
wilinz committed Sep 2, 2024
1 parent 942497f commit e5b1d69
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Build and Push

on:
workflow_dispatch: # Allows manual triggering of the workflow

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Registry
uses: docker/login-action@v2
with:
registry: docker.kexie.space
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and Push Docker image
run: |
docker buildx build --platform linux/amd64 -t docker.kexie.space/kexie/kexie-attendance:latest --push .

0 comments on commit e5b1d69

Please sign in to comment.