@@ -25,28 +25,23 @@ jobs:
25
25
username : ${{ secrets.DOCKER_USERNAME }}
26
26
password : ${{ secrets.DOCKER_PASSWORD }}
27
27
28
- - name : Build and push Docker image
29
- uses : docker/build-push-action@v6
30
- with :
31
- context : .
32
- push : true
33
- platforms : linux/amd64,linux/arm64
34
- tags : ${{ github.repository }}:${{ github.event.release.tag_name }},${{ github.repository }}:latest
35
-
36
28
- name : Set repository info
37
29
run : |
38
30
if [[ -z "${{ env.repository_name }}" ]]; then
31
+ echo "::notice title=Unresolved GH context::GitHub context for 'repository.name' did not resolve"
39
32
REPO_NAME="${GITHUB_REPOSITORY}"
40
33
else
41
34
REPO_NAME="${{ env.repository_name }}"
42
35
fi
43
36
if [ -z "$REPO_NAME" ]; then
37
+ echo "::warning title=Unresolved key::Guard rail for repository name failed, using fallback."
44
38
echo "REPO_NAME=thevickypedia/github-runner-linux" >> $GITHUB_ENV
45
39
else
46
40
echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV
47
41
fi
48
42
49
43
if [[ -z "${{ env.repository_desc }}" ]]; then
44
+ echo "::notice title=Unresolved GH context::GitHub context for 'repository.description' did not resolve"
50
45
echo REPO_DESCRIPTION="Spin up an on-demand self-hosted GitHub action runner with multi-arch supported Ubuntu image." >> $GITHUB_ENV
51
46
else
52
47
echo REPO_DESCRIPTION="${{ env.repository_desc }}" >> $GITHUB_ENV
56
51
repository_name : " ${{ github.repository.name }}"
57
52
repository_desc : " ${{ github.repository.description }}"
58
53
54
+ - name : Build and push Docker image
55
+ uses : docker/build-push-action@v6
56
+ with :
57
+ context : .
58
+ push : true
59
+ platforms : linux/amd64,linux/arm64
60
+ tags : ${{ github.repository }}:${{ github.event.release.tag_name }},${{ github.repository }}:latest
61
+
59
62
- name : Update description
60
63
uses : thevickypedia/describe-docker@v1
61
64
with :
0 commit comments