Skip to content

Commit 474bbc6

Browse files
committed
change to usin workflow file from auto-sklearn
1 parent 714df4e commit 474bbc6

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,17 @@ jobs:
2929
shell: bash
3030
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
3131
id: extract_branch
32-
33-
- name: Log in to Docker Hub
34-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
35-
with:
36-
username: ${{ secrets.DOCKER_USERNAME }}
37-
password: ${{ secrets.DOCKER_PASSWORD }}
38-
39-
- name: Log in to the Container registry
40-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
32+
33+
- name: Push to GitHub Packages
34+
uses: docker/build-push-action@v1
4135
with:
42-
registry: ghcr.io
4336
username: ${{ github.actor }}
4437
password: ${{ secrets.GITHUB_TOKEN }}
45-
46-
- name: Extract metadata (tags, labels) for Docker
47-
id: meta
48-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
49-
with:
50-
images: |
51-
automlorg/autopytorch
52-
ghcr.io/automl/auto-pytorch
53-
38+
registry: ghcr.io
39+
repository: automl/auto-pytorch/autopytorch
40+
tag_with_ref: true
41+
tags: ${{ steps.extract_branch.outputs.branch }}
42+
5443
- name: Push to Docker Hub
5544
uses: docker/build-push-action@v1
5645
with:

0 commit comments

Comments
 (0)