Skip to content

Docker Build and Push #1

Docker Build and Push

Docker Build and Push #1

Workflow file for this run

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 .