From faef19180d4ba3beb5b47a291d4444c68acb7471 Mon Sep 17 00:00:00 2001 From: Devedse Date: Thu, 30 May 2024 22:15:49 +0200 Subject: [PATCH] wip --- .github/workflows/docker-publish.yml | 57 ++++++++++++++++------------ 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f876f0f99..4c479ccce 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,29 +6,31 @@ name: Docker # documentation. on: - schedule: - - cron: '20 0 * * *' - push: - branches: - - main - - feature/** - # Publish semver tags as releases. - tags: [ 'v*.*.*' ] - paths-ignore: - - 'docs/**' - - 'mkdocs.yml' - pull_request: - branches: [ "main" ] - paths-ignore: - - 'docs/**' - - 'mkdocs.yml' - merge_group: + workflow_dispatch: + + # schedule: + # - cron: '20 0 * * *' + # push: + # branches: + # - main + # - feature/** + # # Publish semver tags as releases. + # tags: [ 'v*.*.*' ] + # paths-ignore: + # - 'docs/**' + # - 'mkdocs.yml' + # pull_request: + # branches: [ "main" ] + # paths-ignore: + # - 'docs/**' + # - 'mkdocs.yml' + # merge_group: env: # Use docker.io for Docker Hub if empty - REGISTRY: ghcr.io + REGISTRY: docker.io # github.repository as / - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: devedse/homepage jobs: @@ -94,13 +96,18 @@ jobs: # Login against a Docker registry except on PR # https://github.com/docker/login-action - - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' - uses: docker/login-action@v3 + # - name: Log into registry ${{ env.REGISTRY }} + # if: github.event_name != 'pull_request' + # uses: docker/login-action@v3 + # with: + # registry: ${{ env.REGISTRY }} + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v2 with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: devedse + password: ${{ secrets.DOCKERHUBTOKEN }} # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action