Strip ref prefix
@@ -27,7 +27,14 @@ jobs:
run: echo "${{ secrets.CONTAINER_REGISTRY_PERSONAL_ACCESS_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Download Gleam archive from GitHub release
- run: curl -Lo gleam.tar.gz https://github.com/${{ github.repository }}/releases/download/${{ github.ref }}/gleam-${{ github.ref }}-linux-amd64.tar.gz
+ run: |
+ # Strip git ref prefix from version
+ VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
+
+ # Download archive
+ URL=https://github.com/${{ github.repository }}/releases/download/$VERSION/gleam-$VERSION-linux-amd64.tar.gz
+ echo Downloading $URL
+ curl -Lo gleam.tar.gz $URL
- name: Unpack Gleam binary from archive
run: tar xf gleam.tar.gz
@@ -35,7 +42,7 @@ jobs:
- name: Build container image
run: docker build --file containers/${{ matrix.base-image }}.dockerfile --tag the-image .
- - name: Push image
+ - name: BuilPush image
run: |
IMAGE_ID_BASE=ghcr.io/${{ github.repository }}/gleam
