mirror of
https://github.com/edufeed-org/polloer.git
synced 2025-12-07 23:34:31 +00:00
27 lines
633 B
YAML
27 lines
633 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build and tag Docker image
|
|
run: |
|
|
docker build -t ${{ secrets.DOCKER_USERNAME }}/polloer:latest .
|
|
|
|
- name: Push to Docker Hub
|
|
run: |
|
|
docker push ${{ secrets.DOCKER_USERNAME }}/polloer:latest
|