Skip to content

Commit

Permalink
Please?
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicnessTwo committed Oct 6, 2023
1 parent 93086b8 commit 9de35f9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:
- name: Set commit SHA
id: commit_sha
run: echo "::set-output name=SHA::$(git rev-parse --short ${{ github.sha }})"
- name: Convert repository owner to lowercase
id: lowercase_owner
run: echo "::set-output name=LOWER_OWNER::${{ github.repository_owner | lower }}"
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag dualping:${{ steps.commit_sha.outputs.SHA }}
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{ steps.lowercase_owner.outputs.LOWER_OWNER }} --password-stdin
docker tag dualping:${{ steps.commit_sha.outputs.SHA }} docker.pkg.github.com/${{ steps.lowercase_owner.outputs.LOWER_OWNER }}/dualping:${{ steps.commit_sha.outputs.SHA }}
docker push docker.pkg.github.com/${{ steps.lowercase_owner.outputs.LOWER_OWNER }}/dualping:${{ steps.commit_sha.outputs.SHA }}
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.repository_owner }} --password-stdin
docker tag dualping:${{ steps.commit_sha.outputs.SHA }} docker.pkg.github.com/epicnesstwo/dualping:${{ steps.commit_sha.outputs.SHA }}
docker push docker.pkg.github.com/epicnesstwo/dualping:${{ steps.commit_sha.outputs.SHA }}

0 comments on commit 9de35f9

Please sign in to comment.