@@ -15,28 +15,26 @@ jobs:
15
15
contents : read
16
16
17
17
steps :
18
- - name : Replace underscores in tag name
19
- run : NAME="$GITHUB.REPOSITORY"; echo DOCKER_TAG=${NAME//_//} >> $GITHUB_ENV
20
18
- uses : actions/checkout@v3
21
19
- # Activate cache export feature to reduce build time of image
22
20
name : Set up Docker Buildx
23
21
uses : docker/setup-buildx-action@v2
24
22
- name : Build the Docker image
25
- run : make docker DOCKER_TAG=${{ env.DOCKER_TAG }}
23
+ run : make docker
26
24
- name : Login to Dockerhub
27
25
uses : docker/login-action@v2
28
26
with :
29
27
username : ${{ secrets.DOCKERHUB_USERNAME }}
30
28
password : ${{ secrets.DOCKERHUB_PASSWORD }}
31
29
- name : Push image to Dockerhub
32
- run : docker push ${{ env.DOCKER_TAG }}
30
+ run : docker push bertsky/ocrd/detectron2
33
31
- name : Alias the Docker image for GHCR
34
- run : docker tag ${{ env.DOCKER_TAG }} ghcr.io/${{ env.DOCKER_TAG }}
32
+ run : docker tag bertsky/ocrd/detectron2 ghcr.io/bertsky/ocrd/detectron2
35
33
- name : Login to GitHub Container Registry
36
34
uses : docker/login-action@v2
37
35
with :
38
36
registry : ghcr.io
39
37
username : ${{ github.actor }}
40
38
password : ${{ secrets.GITHUB_TOKEN }}
41
39
- name : Push image to Github Container Registry
42
- run : docker push ghcr.io/${{ env.DOCKER_TAG }}
40
+ run : docker push ghcr.io/bertsky/ocrd/detectron2
0 commit comments