Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
#89: ci(ghcr, docker): support GitHub packages
Browse files Browse the repository at this point in the history
#89: ci(ghcr, docker): support GitHub packages
  • Loading branch information
rustatian authored Aug 25, 2021
2 parents 9daaeb2 + e8c68b8 commit 09e2aad
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 # Action page: <https://github.com/docker/setup-buildx-action>

- name: Make docker login
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GHCR_LOGIN }}
password: ${{ secrets.GHCR_PASSWORD }}

- name: Generate builder values
id: values
Expand All @@ -147,6 +157,8 @@ jobs:
--platform "linux/amd64,linux/arm64" \
--tag "spiralscout/roadrunner:latest" \
--tag "spiralscout/roadrunner:${{ steps.values.outputs.version }}" \
--tag "ghcr.io/spiralscout/roadrunner:latest" \
--tag "ghcr.io/spiralscout/roadrunner:${{ steps.values.outputs.version }}" \
--build-arg "APP_VERSION=${{ steps.values.outputs.version }}" \
--build-arg "BUILD_TIME=${{ steps.values.outputs.timestamp }}" \
--file ./Dockerfile \
Expand Down

0 comments on commit 09e2aad

Please sign in to comment.