|
@ -3,38 +3,32 @@ name: Docker Publish |
|
|
on: |
|
|
on: |
|
|
push: |
|
|
push: |
|
|
branches: |
|
|
branches: |
|
|
- 'main' |
|
|
- "main" |
|
|
schedule: |
|
|
schedule: |
|
|
- cron: '0 0 * * *' |
|
|
- cron: "0 0 * * *" |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
docker: |
|
|
docker: |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
steps: |
|
|
steps: |
|
|
- |
|
|
- name: Checkout |
|
|
name: Checkout |
|
|
|
|
|
uses: actions/checkout@v3 |
|
|
uses: actions/checkout@v3 |
|
|
- |
|
|
- name: Set up QEMU |
|
|
name: Set up QEMU |
|
|
|
|
|
uses: docker/setup-qemu-action@v2 |
|
|
uses: docker/setup-qemu-action@v2 |
|
|
- |
|
|
- name: Set up Docker Buildx |
|
|
name: Set up Docker Buildx |
|
|
|
|
|
uses: docker/setup-buildx-action@v2.2.1 |
|
|
uses: docker/setup-buildx-action@v2.2.1 |
|
|
- |
|
|
- name: Login to DockerHub |
|
|
name: Login to DockerHub |
|
|
|
|
|
uses: docker/login-action@v2.1.0 |
|
|
uses: docker/login-action@v2.1.0 |
|
|
with: |
|
|
with: |
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }} |
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }} |
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
|
|
- |
|
|
- name: Login to GitHub Container Registry |
|
|
name: Login to GitHub Container Registry |
|
|
|
|
|
uses: docker/login-action@v2.1.0 |
|
|
uses: docker/login-action@v2.1.0 |
|
|
with: |
|
|
with: |
|
|
registry: ghcr.io |
|
|
registry: ghcr.io |
|
|
username: ${{ github.actor }} |
|
|
username: ${{ github.actor }} |
|
|
password: ${{ secrets.GITHUB_TOKEN }} |
|
|
password: ${{ secrets.GITHUB_TOKEN }} |
|
|
- |
|
|
- name: Build and push |
|
|
name: Build and push |
|
|
|
|
|
uses: docker/build-push-action@v3.2.0 |
|
|
uses: docker/build-push-action@v3.2.0 |
|
|
with: |
|
|
with: |
|
|
context: . |
|
|
context: . |
|
|