File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,21 +111,22 @@ jobs:
111111
112112 # Create Docker Image
113113 - name : Docker login
114- if : steps.create_tag.outputs.successful
115114 run : docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
116115
117116 - name : Build linux-command image
118- if : steps.create_tag.outputs.successful
119117 run : docker image build -t linux-command .
120118
119+ - name : Tags & Push image(latest)
120+ run : |
121+ docker tag linux-command ${{ secrets.DOCKER_USER }}/linux-command:latest
122+ docker push ${{ secrets.DOCKER_USER }}/linux-command:latest
123+
121124 - name : Tags & Push image
122125 if : steps.create_tag.outputs.successful
123126 run : |
124127 echo "outputs.tag - ${{ steps.changelog.outputs.version }}"
125128 docker tag linux-command ${{ secrets.DOCKER_USER }}/linux-command:${{steps.changelog.outputs.version}}
126- docker tag linux-command ${{ secrets.DOCKER_USER }}/linux-command:latest
127129 docker push ${{ secrets.DOCKER_USER }}/linux-command:${{steps.changelog.outputs.version}}
128- docker push ${{ secrets.DOCKER_USER }}/linux-command:latest
129130
130131 # Create Docker Image in Github
131132 - name : Login to GitHub registry
@@ -137,7 +138,6 @@ jobs:
137138 - name : Publish to GitHub registry
138139 run : docker push ghcr.io/jaywcjlove/linux-command:latest
139140
140-
141141 - name : Tag docker image (beta) and publish to GitHub registry
142142 if : steps.create_tag.outputs.successful
143143 run : |
You can’t perform that action at this time.
0 commit comments