summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-docker-image.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml
index 3656c94da..fb4c2ef39 100644
--- a/.github/workflows/build-docker-image.yaml
+++ b/.github/workflows/build-docker-image.yaml
@@ -33,8 +33,10 @@ jobs:
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
+ # GitHub Container Registry & Docker Hub
images: |
- ghcr.io/MisterX2000/yacy_search_server
+ ghcr.io/${{ github.repository }}
+ ${{ github.repository }}
# generate Docker tags based on the following events/attributes
flavor: |
latest=auto
@@ -59,6 +61,13 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Login to Docker Hub
+ if: github.event_name != 'pull_request'
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
- name: Set up QEMU
uses: docker/setup-qemu-action@v3