diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-nightly-release.yml similarity index 75% rename from .github/workflows/docker-release.yml rename to .github/workflows/docker-nightly-release.yml index 3641331f..b8daaf37 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-nightly-release.yml @@ -1,9 +1,9 @@ -name: docker-release +name: Docker nightly release on: - push: - branches: - - 'main' + workflow_dispatch: + schedule: + - cron: '0 0 * * *' jobs: ci: @@ -38,6 +38,13 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub uses: docker/login-action@v2 with: @@ -57,4 +64,4 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: corentinth/it-tools:latest + tags: corentinth/it-tools:nightly