Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 26, 2022
1 parent 38837f8 commit 1855508
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,21 @@ jobs:
docker tag awesome-mac ${{ secrets.DOCKER_USER }}/awesome-mac:${{steps.changelog.outputs.version}}
docker tag awesome-mac ${{ secrets.DOCKER_USER }}/awesome-mac:latest
docker push ${{ secrets.DOCKER_USER }}/awesome-mac:${{steps.changelog.outputs.version}}
docker push ${{ secrets.DOCKER_USER }}/awesome-mac:latest
docker push ${{ secrets.DOCKER_USER }}/awesome-mac:latest
# Create Docker Image in Github
- name: Login to GitHub registry
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build docker image
run: docker build -t ghcr.io/jaywcjlove/awesome-mac:latest .

- name: Publish to GitHub registry
run: docker push ghcr.io/jaywcjlove/awesome-mac:latest

- name: Tag docker image (beta) and publish to GitHub registry
if: steps.create_tag.outputs.successful
run: |
echo "version: v${{ steps.changelog.outputs.version }}"
docker tag ghcr.io/jaywcjlove/awesome-mac:latest ghcr.io/jaywcjlove/awesome-mac:${{steps.changelog.outputs.version}}
docker push ghcr.io/jaywcjlove/awesome-mac:${{steps.changelog.outputs.version}}

1 comment on commit 1855508

@LAVDEEP007
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.