Skip to content

Commit bdb7fb1

Browse files
update action script
1 parent 1ea5e55 commit bdb7fb1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v3
2020

21-
- name: Build image
22-
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
23-
2421
- name: Log in to registry
2522
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
2623

2724
- name: Push image
2825
run: |
2926
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
27+
3028
3129
# Change all uppercase to lowercase
3230
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
@@ -40,3 +38,4 @@ jobs:
4038
echo VERSION=$VERSION
4139
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
4240
docker push $IMAGE_ID:$VERSION
41+
make docker-build docker-push IMG=$IMAGE_ID:$VERSION

0 commit comments

Comments
 (0)