Skip to content

Commit db9af31

Browse files
committed
cleaning
1 parent 02c188b commit db9af31

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/build-latest-docker-image.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,17 @@ jobs:
2525
- name: Set up docker builder
2626
uses: docker/setup-buildx-action@v3
2727

28-
- name: lowercase github.repository
29-
run: |
30-
echo "IMAGE_NAME=`echo ${{github.repository}} | tr '[:upper:]' '[:lower:]'`" >>${GITHUB_ENV}
31-
3228
- name: Login to github container registry
3329
uses: docker/login-action@v3
3430
with:
3531
registry: ${{ env.REGISTRY }}
3632
username: ${{ github.actor }}
3733
password: ${{ secrets.GITHUB_TOKEN }}
3834

39-
- name: Build and export to docker
40-
uses: docker/build-push-action@v5
41-
with:
42-
context: .
43-
load: true
44-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
45-
4635
- name: Build and push image to github container registry
4736
uses: docker/build-push-action@v5
4837
with:
4938
context: .
39+
load: true
5040
push: true
51-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
41+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 commit comments

Comments
 (0)