Skip to content

Commit 02cc132

Browse files
committed
v0.14.0-rc1
1 parent 926cd1e commit 02cc132

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

.github/workflows/release-containers.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,46 @@ jobs:
3333
- name: Set up Docker Buildx
3434
uses: docker/setup-buildx-action@v1
3535

36-
- name: Download Gleam archive from GitHub release
36+
- name: Build version and tags
37+
id: versions
3738
run: |
3839
# Strip git ref prefix from version
39-
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
40+
V_VERSION=$(echo "${{ github.ref }}" | sed -e 's|.*/\(.*\)|\1|')
41+
42+
# Strip `v` prefix from version
43+
BARE_VERSION=$(echo "$V_VERSION" | sed -e 's|^v/\(.*\)|\1|')
44+
45+
# Build version with platform
46+
PLATFORM_VERSION=$BARE_VERSION-${{ matrix.base-image }}
47+
48+
# Build container tag
49+
TAG=ghcr.io/${{ github.repository }}:$PLATFORM_VERSION
50+
51+
echo "::set-output name=v_version::$V_VERSION"
52+
echo "::set-output name=bare_version::$BARE_VERSION"
53+
echo "::set-output name=platform_version::$PLATFORM_VERSION"
54+
echo "::set-output name=container_tag::$TAG"
4055
41-
# Download archive
56+
- name: Download Gleam archive from GitHub release
57+
run: |
58+
VERSION=${{ steps.versions.outputs.v_version }}
4259
URL=https://github.com/${{ github.repository }}/releases/download/$VERSION/gleam-$VERSION-linux-amd64.tar.gz
4360
echo Downloading $URL
4461
curl -Lo gleam.tar.gz $URL
4562
4663
- name: Unpack Gleam binary from archive
4764
run: tar xf gleam.tar.gz
4865

49-
- name: Prepare container meta information
50-
id: container_meta
51-
uses: crazy-max/ghaction-docker-meta@v1
52-
with:
53-
images: ghcr.io/${{ github.repository }}
54-
tag-sha: true
55-
tag-latest: false
56-
tag-semver: |
57-
{{version}}-${{ matrix.base-image }}
58-
{{major}}.{{minor}}-${{ matrix.base-image }}
59-
6066
- name: Build and push
6167
uses: docker/build-push-action@v2
6268
with:
6369
context: .
6470
file: containers/${{ matrix.base-image }}.dockerfile
6571
push: true
66-
tags: ${{ steps.container_meta.outputs.tags }}
67-
labels: ${{ steps.container_meta.outputs.labels }}
72+
tags: ${{ steps.versions.outputs.container_tag }}
73+
labels: |
74+
org.opencontainers.image.title=gleam
75+
org.opencontainers.image.url=https://gleam.run
76+
org.opencontainers.image.source=https://github.com/gleam-lang/gleam
77+
org.opencontainers.image.version=${{ steps.versions.outputs.platform_version }}
78+
org.opencontainers.image.licenses=Apache-2.0

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
- Gleam can now compile Gleam projects without an external build tool.
66
- Gleam can now run eunit without an external build tool.
77
- Gleam can now run an Erlang shell without an external build tool.
8+
9+
## v0.14.0-rc1 - 2021-02-14
10+
11+
- Gleam now generates Erlang typespecs.
812
- New projects no longer include a licence file by default.
913
- New projects can be created using the new `escript` template to generate a
1014
command line tool style program.
1115
- A warning is emitted when a literal value is constructed but not used.
1216
- Automatically generate a link to repository in docs if available.
13-
- Gleam now generates Erlang typespecs.
1417
- Code in HTML documentation is has highlighted syntax.
1518
- Gleam now only supports `\r`, `\n`, `\t`, `\"`, and `\\` string escapes.
1619
- A set of OCI container images are built automatically for each release.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gleam"
3-
version = "0.14.0-dev"
3+
version = "0.14.0-rc1"
44
authors = ["Louis Pilfold <[email protected]>"]
55
edition = "2018"
66
license-file = "LICENCE"

0 commit comments

Comments
 (0)