chore: update workflows config.

This commit is contained in:
jaywcjlove 2022-06-15 09:46:52 +08:00
parent 08749fcc41
commit 87e95e8818
1 changed files with 19 additions and 1 deletions

View File

@ -125,4 +125,22 @@ jobs:
docker tag linux-command ${{ secrets.DOCKER_USER }}/linux-command:${{steps.changelog.outputs.version}}
docker tag linux-command ${{ secrets.DOCKER_USER }}/linux-command:latest
docker push ${{ secrets.DOCKER_USER }}/linux-command:${{steps.changelog.outputs.version}}
docker push ${{ secrets.DOCKER_USER }}/linux-command:latest
docker push ${{ secrets.DOCKER_USER }}/linux-command: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/linux-command:latest .
- name: Publish to GitHub registry
run: docker push ghcr.io/jaywcjlove/linux-command: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/linux-command:latest ghcr.io/jaywcjlove/linux-command:${{steps.changelog.outputs.version}}
docker push ghcr.io/jaywcjlove/linux-command:${{steps.changelog.outputs.version}}