File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 15
15
# Use docker.io for Docker Hub if empty
16
16
REGISTRY : ghcr.io
17
17
# github.repository as <account>/<repo>
18
- IMAGE_NAME : ${{ github.repository }}
18
+ REGISTRY_PATH : ${{ github.repository }}
19
19
TEST_TAG : user/app:test
20
20
21
21
jobs :
30
30
- name : Setup Docker buildx
31
31
32
32
33
- # Build but not push Docker image with Buildx
33
+ # Build but don't push Docker image with Buildx
34
34
# https://github.com/docker/build-push-action
35
35
- name : Build test image
36
36
id : build-test
65
65
- socketio_app
66
66
- dramatiq_app
67
67
steps :
68
+ # GitHub gives only repository complete in <owner>/<repo> format.
69
+ # Need some manual sheanigans
70
+ # Set IMAGE_NAME so we can push to <owner>/<repo>/<image>
71
+ - name : Set ENV variables
72
+ run : |
73
+ echo "IMAGE_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}" >> $GITHUB_ENV
74
+
68
75
- name : Checkout repository
69
76
uses : actions/checkout@v4
70
77
95
102
96
103
with :
97
104
# list of Docker images to use as base name for tags
105
+ # <registry/<owner>/<repo_name>/<repo_name>-<target>
98
106
images : |
99
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.IMAGE_NAME }}-${{ matrix.docker_target }}
107
+ ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-${{ matrix.docker_target }}
100
108
# generate Docker tags based on the following events/attributes
101
109
tags : |
102
110
type=sha
You can’t perform that action at this time.
0 commit comments