Skip to content

Commit

Permalink
Merge pull request #42 from runwaylab/workflow-improvements
Browse files Browse the repository at this point in the history
Workflow improvements
  • Loading branch information
GrantBirki authored Jan 17, 2025
2 parents d6be2c5 + aba5c2f commit 3bbb74f
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .crystal-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.13.2
1.14.1
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.git/
docs/
vendor/.cache/
vendor/shards/install/
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d # pin@v1.8.2
with:
crystal: ${{ steps.crystal-version.outputs.crystal }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d # pin@v1.8.2
with:
crystal: ${{ steps.crystal-version.outputs.crystal }}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: extract image metadata
id: meta
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d # pin@v1.8.2
with:
crystal: ${{ steps.crystal-version.outputs.crystal }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d # pin@v1.8.2
with:
crystal: ${{ steps.crystal-version.outputs.crystal }}

Expand Down Expand Up @@ -54,15 +54,15 @@ jobs:
name: runway-binaries
path: releases/

- uses: actions/[email protected]
- uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # pin@v1.11.1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- name: Push a Release
id: release
uses: ncipollo/release-action@v1.14.0
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # pin@v1.15.0
with:
artifacts: "./releases/*"
tag: ${{ env.VERSION }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT

- name: install crystal
uses: crystal-lang/[email protected]
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d # pin@v1.8.2
with:
crystal: ${{ steps.crystal-version.outputs.crystal }}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://github.com/84codes/crystal-container-images
FROM 84codes/crystal:1.13.2-ubuntu-24.04 AS builder
FROM 84codes/crystal:1.14.1-ubuntu-24.04 AS builder

LABEL org.opencontainers.image.title="runway"
LABEL org.opencontainers.image.description="clearing code for take off"
Expand Down
2 changes: 1 addition & 1 deletion acceptance/logs/expected.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ INFO: πŸ“– loading runway configuration
DEBUG: attempting to load config from acceptance/config/config.yml
INFO: βœ… loaded configuration successfully
INFO: 🚚 2 projects loaded
INFO: πŸ›« starting runway - version: v0.2.3
INFO: πŸ›« starting runway - version: v0.2.4
INFO: πŸ“¦ starting project project-1
INFO: πŸ• scheduling event with interval 3s for project-1
INFO: πŸ“¦ starting project project-2
Expand Down
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: runway
version: 0.2.3
version: 0.2.4

authors:
- GrantBirki
Expand All @@ -8,7 +8,7 @@ targets:
runway:
main: src/cli.cr

crystal: ">= 1.13.2"
crystal: ">= 1.14.1"

license: MIT

Expand Down
2 changes: 1 addition & 1 deletion src/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Runway
VERSION = "v0.2.3"
VERSION = "v0.2.4"
end

0 comments on commit 3bbb74f

Please sign in to comment.