Skip to content

Commit 1391524

Browse files
committed
use fixed repository name as GHA will replace any refs by *** anyway
1 parent ed1237e commit 1391524

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,26 @@ jobs:
1515
contents: read
1616

1717
steps:
18-
- name: Replace underscores in tag name
19-
run: NAME="$GITHUB.REPOSITORY"; echo DOCKER_TAG=${NAME//_//} >> $GITHUB_ENV
2018
- uses: actions/checkout@v3
2119
- # Activate cache export feature to reduce build time of image
2220
name: Set up Docker Buildx
2321
uses: docker/setup-buildx-action@v2
2422
- name: Build the Docker image
25-
run: make docker DOCKER_TAG=${{ env.DOCKER_TAG }}
23+
run: make docker
2624
- name: Login to Dockerhub
2725
uses: docker/login-action@v2
2826
with:
2927
username: ${{ secrets.DOCKERHUB_USERNAME }}
3028
password: ${{ secrets.DOCKERHUB_PASSWORD }}
3129
- name: Push image to Dockerhub
32-
run: docker push ${{ env.DOCKER_TAG }}
30+
run: docker push bertsky/ocrd/detectron2
3331
- 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
3533
- name: Login to GitHub Container Registry
3634
uses: docker/login-action@v2
3735
with:
3836
registry: ghcr.io
3937
username: ${{ github.actor }}
4038
password: ${{ secrets.GITHUB_TOKEN }}
4139
- 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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PYTHONIOENCODING=utf8
44
SHELL = /bin/bash
55

66
# Docker container tag
7-
DOCKER_TAG = 'bertsky/detectron2'
7+
DOCKER_TAG = 'bertsky/ocrd/detectron2'
88

99
help:
1010
@echo

0 commit comments

Comments
 (0)