summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2025-06-22 16:12:31 +0200
committerMichael Peter Christen <mc@yacy.net>2025-06-22 16:12:31 +0200
commitf4509ae25923cf99f1b88467d17fc221d5b8d94f (patch)
tree49fecee0c5aa7a69d706704003d34f9d78386fe4
parent5c63775ebc17babe27c5b49c24ae747a101f54e1 (diff)
try to fix push problems #4
-rw-r--r--.github/workflows/build-docker-image.yaml21
-rw-r--r--.gitignore1
2 files changed, 11 insertions, 11 deletions
diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml
index 377e1eafb..ebfea275a 100644
--- a/.github/workflows/build-docker-image.yaml
+++ b/.github/workflows/build-docker-image.yaml
@@ -32,15 +32,20 @@ jobs:
runs-on: ubuntu-latest
steps:
+ # docker push action, see https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images
+ - name: Login to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
- images: |
- #${{ secrets.DOCKERHUB_REPONAME }}/${{ github.event.repository.name }}
- flavor: |
- latest=${{ matrix.is_default }}
+ images: ${{ secrets.DOCKERHUB_REPONAME }}/${{ github.event.repository.name }}
+ flavor: latest=${{ matrix.is_default }}
tags: |
type=raw,value=latest${{ matrix.suffix }},enable=true
type=raw,value=sha-${{ github.sha }}${{ matrix.suffix }},enable=true
@@ -48,12 +53,6 @@ jobs:
type=raw,value='{{major}}.{{minor}}'${{ matrix.suffix }},enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=raw,value='{{major}}'${{ matrix.suffix }},enable=${{ startsWith(github.ref, 'refs/tags/') }}
- - name: Login to Docker Hub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
-
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
@@ -61,7 +60,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Build and push
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v5
with:
file: docker/Dockerfile${{ matrix.tag != '' && format('.{0}', matrix.tag) || '' }}
push: true
diff --git a/.gitignore b/.gitignore
index aec19e156..753b583c5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,4 @@ yacy.log
/ivy
/lib
vagrant_yacy/.vagrant/
+.gradle