Skip to content

Commit

Permalink
Remove the version from Crane
Browse files Browse the repository at this point in the history
  • Loading branch information
navarr committed Dec 17, 2024
1 parent 6b8bbad commit 6023471
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: |-
ESCAPED_VERSION="$(echo ${{ matrix.version }} | sed 's/\./\\\./g')"
ES_VERSION=$(
docker run --rm gcr.io/go-containerregistry/crane:v0.8.0 ls docker.elastic.co/elasticsearch/elasticsearch \
docker run --rm gcr.io/go-containerregistry/crane ls docker.elastic.co/elasticsearch/elasticsearch \
| egrep "^${ESCAPED_VERSION}\.[0-9]+(\.[0-9]+)?\$" | sort -Vr | head -n1
)
echo "ES_VERSION=${ES_VERSION}" | tee /dev/stderr >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |-
ESCAPED_VERSION="$(echo ${{ matrix.version }} | sed 's/\./\\\./g')"
MYSQL_VERSION=$(
docker run --rm gcr.io/go-containerregistry/crane:v0.8.0 ls mysql \
docker run --rm gcr.io/go-containerregistry/crane ls mysql \
| egrep "^${ESCAPED_VERSION}(\.[0-9]+)?(\.[0-9]+)?(-oracle)?\$" | sort -Vr | head -n1
)
echo "MYSQL_VERSION=${MYSQL_VERSION}" | tee /dev/stderr >> $GITHUB_ENV
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
run: |-
ESCAPED_VERSION="$(echo ${{ matrix.version }} | sed 's/\./\\\./g')"
MYSQL_VERSION=$(
docker run --rm gcr.io/go-containerregistry/crane:v0.8.0 ls mysql \
docker run --rm gcr.io/go-containerregistry/crane ls mysql \
| egrep "^${ESCAPED_VERSION}(\.[0-9]+)?(\.[0-9]+)?(-oracle)?\$" | sort -Vr | head -n1
)
echo "MYSQL_VERSION=${MYSQL_VERSION}" | tee /dev/stderr >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: |-
ESCAPED_VERSION="$(echo ${{ matrix.version }} | sed 's/\./\\\./g')"
OPENSEARCH_VERSION=$(
docker run --rm gcr.io/go-containerregistry/crane:v0.8.0 ls docker.io/opensearchproject/opensearch \
docker run --rm gcr.io/go-containerregistry/crane ls docker.io/opensearchproject/opensearch \
| egrep "^${ESCAPED_VERSION}\.[0-9]+(\.[0-9]+)?\$" | sort -Vr | head -n1
)
echo "OPENSEARCH_VERSION=${OPENSEARCH_VERSION}" | tee /dev/stderr >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: |-
ESCAPED_VERSION="$(echo ${{ matrix.version }} | sed 's/\./\\\./g')"
POSTGRES_VERSION=$(
docker run --rm gcr.io/go-containerregistry/crane:v0.8.0 ls postgres \
docker run --rm gcr.io/go-containerregistry/crane ls postgres \
| egrep "^${ESCAPED_VERSION}(\.[0-9]+)?(-alpine)?\$" | sort -Vr | head -n1
)
echo "POSTGRES_VERSION=${POSTGRES_VERSION}" | tee /dev/stderr >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/varnish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |-
ESCAPED_VERSION="$(echo ${{ matrix.version }} | sed 's/\./\\\./g')"
VARNISH_VERSION=$(
docker run --rm gcr.io/go-containerregistry/crane:v0.8.0 ls varnish \
docker run --rm gcr.io/go-containerregistry/crane ls varnish \
| egrep "^${ESCAPED_VERSION}(\.[0-9]+)?(\.[0-9]+)?(-alpine)?\$" | sort -Vr | head -n1
)
echo "VARNISH_VERSION=${VARNISH_VERSION}" | tee /dev/stderr >> $GITHUB_ENV
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
run: |-
ESCAPED_VERSION="$(echo ${{ matrix.version }} | sed 's/\./\\\./g')"
VARNISH_VERSION=$(
docker run --rm gcr.io/go-containerregistry/crane:v0.8.0 ls varnish \
docker run --rm gcr.io/go-containerregistry/crane ls varnish \
| egrep "^${ESCAPED_VERSION}(\.[0-9]+)?(\.[0-9]+)?(-alpine)?\$" | sort -Vr | head -n1
)
echo "VARNISH_VERSION=${VARNISH_VERSION}" | tee /dev/stderr >> $GITHUB_ENV
Expand Down

0 comments on commit 6023471

Please sign in to comment.