2023-06-10 14:10:01 +00:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
runs-on: ubuntu-latest
|
2024-12-03 19:33:43 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
|
2023-06-10 14:10:01 +00:00
|
|
|
steps:
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
2024-12-03 19:39:27 +00:00
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2023-06-10 14:10:01 +00:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: ghcr.io/${{ github.repository }}:latest
|