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 Jul 22, 2022
1 parent 7e4ce55 commit 5214eea
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,21 @@ jobs:
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}

- name: Build Awesome Mac image
if: steps.create_tag.outputs.successful
run: docker image build -t awesome-mac .

- name: Tags & Push image (latest)
if: steps.create_tag.outputs.successful
run: |
echo "outputs.tag - ${{ steps.changelog.outputs.version }}"
docker tag awesome-mac ${{ secrets.DOCKER_USER }}/awesome-mac:latest
docker push ${{ secrets.DOCKER_USER }}/awesome-mac:latest
- name: Tags & Push image
if: steps.create_tag.outputs.successful
run: |
echo "outputs.tag - ${{ steps.changelog.outputs.version }}"
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
# Create Docker Image in GitHub
- name: Login to GitHub registry
Expand Down

0 comments on commit 5214eea

Please sign in to comment.