Skip to content

Commit 413a873

Browse files
committed
another attempt to fix the docker image push ci
1 parent 79b8ad2 commit 413a873

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ jobs:
164164
docker:
165165
name: Push Docker Image
166166
runs-on: ubuntu-latest
167+
timeout-minutes: 45
167168
needs: release
168169
if: ${{ always() && (github.event_name == 'workflow_dispatch' || !contains(github.ref, '-')) }}
169170

@@ -181,20 +182,11 @@ jobs:
181182
fi
182183
echo "version=$VERSION" >> $GITHUB_OUTPUT
183184
184-
- name: Set up Docker Buildx
185-
uses: docker/setup-buildx-action@v3
186-
187185
- name: Log in to Docker Hub
188-
uses: docker/login-action@v3
189-
with:
190-
username: ${{ secrets.DOCKERHUB_USERNAME }}
191-
password: ${{ secrets.DOCKERHUB_TOKEN }}
186+
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
192187

193-
- name: Build and push
194-
uses: docker/build-push-action@v6
195-
with:
196-
context: .
197-
file: ./Containerfile
198-
push: true
199-
tags: nrminor/oneroof:${{ steps.version.outputs.version }}
200-
provenance: false
188+
- name: Build image
189+
run: docker build --file Containerfile --tag nrminor/oneroof:${{ steps.version.outputs.version }} .
190+
191+
- name: Push image
192+
run: docker push nrminor/oneroof:${{ steps.version.outputs.version }}

0 commit comments

Comments
 (0)