Skip to content

Commit

Permalink
fix(docker): fix docker image build script error
Browse files Browse the repository at this point in the history
  • Loading branch information
medns authored and zoomchan-cxj committed Aug 3, 2021
1 parent e771f58 commit 77cee97
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_android_release_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- 'docker/android-release/Dockerfile'
jobs:
push_to_registry:
name: Push Docker image
name: Push docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
Expand All @@ -28,9 +28,14 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get repo owner(in lowercase)
id: get_owner
uses: ASzc/change-string-case-action@v2
with:
string: ${{ github.repository_owner }}
- name: Push to ghcr.io
uses: docker/build-push-action@v2
with:
context: docker/android-release
push: true
tags: ghcr.io/${{ github.repository_owner }}/android-release:${{ github.event.inputs.tag || 'latest' }}
tags: ghcr.io/${{ steps.get_owner.outputs.lowercase }}/android-release:${{ github.event.inputs.tag || 'latest' }}

0 comments on commit 77cee97

Please sign in to comment.