48
48
with :
49
49
name : Package Metadata
50
50
- id : echo-version
51
+ shell : bash
51
52
run : ' grep "^Version: " PKG-INFO | cut -d " " -f 2 >> $GITHUB_OUTPUT'
52
53
- if : ${{ github.event_name == 'push' }}
54
+ shell : bash
53
55
run : >
54
56
[ ${{ steps.echo-version.outputs.version }} == ${{ github.ref }} ]
55
57
|| [ refs/tags/${{ steps.echo-version.outputs.version }} == ${{ github.ref }} ]
@@ -79,12 +81,14 @@ jobs:
79
81
with :
80
82
ref : ${{ inputs.ref || github.ref }}
81
83
82
- - run : >
84
+ - shell : bash
85
+ run : >
83
86
echo "PRERELEASE=${{ (
84
87
contains('a', env.VERSION) || contains('b', env.VERSION)
85
88
|| contains('rc', env.VERSION) || contains('pre', env.VERSION)
86
89
) }}" >> $GITHUB_ENV
87
90
- name : echo version related variables
91
+ shell : bash
88
92
run : |
89
93
echo 'VERSION: ${{ env.VERSION }}'
90
94
echo 'PRERELEASE: ${{ env.PRERELEASE }}'
@@ -103,9 +107,11 @@ jobs:
103
107
type=pep440,pattern={{major}}.{{minor}},value=${{ env.VERSION }},enable=${{ env.PRERELEASE == 'false' }}
104
108
- name : prepare push tag value
105
109
id : push-tags-value
110
+ shell : bash
106
111
run : echo "tags=${{ steps.docker-metadata.outputs.tags }}" | tr "\n" " " | sed "s/${{ env.IMAGE_NAME }}://g" >> $GITHUB_OUTPUT
107
112
108
113
- name : install dependency for multi-platform builds
114
+ shell : bash
109
115
run : |
110
116
sudo apt update
111
117
sudo apt install -y qemu-user-static
@@ -121,13 +127,16 @@ jobs:
121
127
tags : ${{ steps.docker-metadata.outputs.tags }}
122
128
123
129
- name : echo build outputs
130
+ shell : bash
124
131
run : |
125
132
echo "Image: ${{ steps.build-image.outputs.image }}"
126
133
echo "Tags: ${{ steps.build-image.outputs.tags }}"
127
134
echo "Tagged Image: ${{ steps.build-image.outputs.image-with-tag }}"
128
135
- name : echo created images
136
+ shell : bash
129
137
run : buildah images | grep '${{ env.IMAGE_NAME }}'
130
138
- name : echo image metadata
139
+ shell : bash
131
140
run : buildah inspect ${{ steps.build-image.outputs.image-with-tag }}
132
141
133
142
- name : push to ghcr.io
0 commit comments