Skip to content

Commit f77a26d

Browse files
committed
add credentials to push to docker hub
1 parent f612f46 commit f77a26d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
branches:
1212
- master
1313
- development
14-
- add_docker-publish
14+
- fix-docker
1515
workflow_dispatch:
1616

1717
jobs:
@@ -51,11 +51,12 @@ jobs:
5151
automlorg/autopytorch
5252
ghcr.io/${{ github.repository }}
5353
54-
- name: Build and push Docker images
55-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
54+
- name: Push to Docker Hub
55+
uses: docker/build-push-action@v1
5656
with:
57-
context: .
58-
push: true
57+
username: ${{ secrets.DOCKER_USERNAME }}
58+
password: ${{ secrets.DOCKER_PASSWORD }}
59+
repository: automlorg/autopytorch
5960
tags: ${{ steps.extract_branch.outputs.branch }}
6061

6162
- name: Docker Login

0 commit comments

Comments
 (0)