Skip to content

Commit

Permalink
fix podman alias not setting for index build and push
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Dubrick <[email protected]>
  • Loading branch information
Jdubrick committed Apr 16, 2024
1 parent 2b6c736 commit 6dd5bf4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index/server/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# this script is commonly called from build_registry.sh and the podman alias is passed down from that script
# this can also affect pathing, to combat this we only run the setenv.sh script if build.sh is being run solo
if [ "$0" == "$BASH_SOURCE" ]; then
. ../../setenv.sh
fi

# Build the index container for the registry
buildfolder="$(realpath $(dirname ${BASH_SOURCE[0]}))"

Expand Down
3 changes: 3 additions & 0 deletions index/server/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# set podman alias if necessary
. ../../setenv.sh

IMAGE_TAG=$1
docker tag devfile-index-base:latest $IMAGE_TAG
docker push $IMAGE_TAG

0 comments on commit 6dd5bf4

Please sign in to comment.