Skip to content

Commit

Permalink
Chore: cross-publish to quay.io (#8)
Browse files Browse the repository at this point in the history
- attempt to use a Docker registry which works with Actions
  • Loading branch information
till authored Jun 28, 2020
1 parent 78cffed commit 0a68d9f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Login to Docker Registry
- name: Login to quay.io
run: |
echo "${{ secrets.QUAY_IO_PASSWORD }}" | \
docker login quay.io -u "${{ secrets.QUAY_IO_USERNAME }}" --password-stdin
- name: Login to GitHub Docker Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
docker login docker.pkg.github.com -u docker --password-stdin
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ dockers:
- "docker.pkg.github.com/hostwithquantum/github-org-sync-action/github-org-sync:v{{ .Major }}"
- "docker.pkg.github.com/hostwithquantum/github-org-sync-action/github-org-sync:v{{ .Major }}.{{ .Minor }}"
- "docker.pkg.github.com/hostwithquantum/github-org-sync-action/github-org-sync:latest"
- "quay.io/hostwithquantum/github-org-sync:v{{ .Tag }}"
- "quay.io/hostwithquantum/github-org-sync:v{{ .Major }}"
- "quay.io/hostwithquantum/github-org-sync:v{{ .Major }}.{{ .Minor }}"
- "quay.io/hostwithquantum/github-org-sync:latest"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ All releases are done using the amazing `goreleaser` in a release workflow in th
You may download a release for Mac, Linux or Windows here:
- https://github.com/hostwithquantum/github-org-sync-action/releases

To use the Docker image, please follow this link:
To use the Docker image, please follow one of these links:
- https://quay.io/repository/hostwithquantum/github-org-sync?tab=tags
- https://github.com/hostwithquantum/github-org-sync-action/packages

Otherwise: `make dev` to build a snapshot.
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inputs:

runs:
using: 'docker'
image: 'docker://docker.pkg.github.com/hostwithquantum/github-org-sync-action/github-org-sync:latest'
image: 'docker://quay.io/hostwithquantum/github-org-sync:latest'
env:
GITHUB_USER: ${{ inputs.github-user }}
GITHUB_EMAIL: ${{ inputs.github-email }}
Expand Down

0 comments on commit 0a68d9f

Please sign in to comment.