Skip to content

Commit

Permalink
Add push to docker.io
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Apr 18, 2020
1 parent 9fa1633 commit 0f86462
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
run: |
docker build . --file .github/workflows/Dockerfile \
--tag docker.pkg.github.com/${{ github.repository }}/hagen:latest \
--tag docker.io/ctron/hagen:latest \
--tag quay.io/ctron/hagen:latest
- name: Check for release
Expand All @@ -70,8 +71,11 @@ jobs:
if: env.RELEASE_VERSION
run: |
docker tag quay.io/ctron/hagen:latest quay.io/ctron/hagen:${RELEASE_VERSION}
docker tag quay.io/ctron/hagen:latest docker.io/ctron/hagen:${RELEASE_VERSION}
docker tag quay.io/ctron/hagen:latest docker.pkg.github.com/${{ github.repository }}/hagen:${RELEASE_VERSION}
# Quay.io

- name: Login to quay.io
run: docker login -u "${{ secrets.QUAY_IO_USERNAME }}" -p "${{ secrets.QUAY_IO_PASSWORD }}" quay.io

Expand All @@ -82,6 +86,20 @@ jobs:
if: env.RELEASE_VERSION
run: docker push quay.io/ctron/hagen:${RELEASE_VERSION}

# Docker Hub

- name: Login to docker.io
run: docker login -u "${{ secrets.DOCKER_IO_USERNAME }}" -p "${{ secrets.DOCKER_IO_PASSWORD }}" docker.io

- name: Push latest to docker.io
run: docker push docker.io/ctron/hagen:latest

- name: Push release to docker.io
if: env.RELEASE_VERSION
run: docker push docker.io/ctron/hagen:${RELEASE_VERSION}

# GitHub Packages

# Pushing to github seems broken at the moment: "unknown blob"
# Unfortunately the GitHub docker registry requires a sign-in, even for public repositories
# - name: Login to github container repository
Expand Down

0 comments on commit 0f86462

Please sign in to comment.