-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# `image_tag` | ||
> Generate a tag for a Docker image | ||
## Usage | ||
```yaml | ||
- | ||
name: Generate Image Tag | ||
id: generate_tag | ||
uses: ./.github/actions/image_tag | ||
|
||
- | ||
name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.slug }} | ||
tags: | | ||
type=raw,value=latest | ||
type=raw,value=${{ steps.generate_tag.outputs.tag }} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Generate Image Tag" | ||
description: "Create a Docker Image tag for the current commit" | ||
inputs: | ||
branch: | ||
description: "The branch name" | ||
outputs: | ||
tag: | ||
description: "The generated tag" | ||
value: ${{ steps.default.outputs.tag }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Generate tag | ||
id: default | ||
shell: bash | ||
run: | | ||
if [ -n "${{ inputs.branch }}" ]; then | ||
branch="${{ inputs.branch }}" | ||
else | ||
branch=${GITHUB_REF#refs/heads/} | ||
fi | ||
sha=${GITHUB_SHA::8} | ||
ts=$(date +%s) | ||
echo "tag=${branch}-${sha}-${ts}" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# pages | ||
> easily deploy sites (with build-scripts) (in a yarn3 monorepo) to Cloudflare Pages | ||
## Usage | ||
```yaml | ||
steps: | ||
- | ||
name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- | ||
name: Deploy | ||
uses: ./.github/actions/pages | ||
with: | ||
# The script to build your site (default: `build`) (joins with `yarn workspace $workspace_name`) | ||
# build_script: build | ||
# Cloudflare Account ID | ||
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# Cloudflare API Token | ||
cloudflare_api_token: ${{ secrets.CLOUDFLARE_PAGES_API_KEY }} | ||
# The directory of static assets to upload (default: `dist`) | ||
# directory: dist | ||
# GitHub Token | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Optional: The script to run before building your site | ||
# prebuild_script: yarn build | ||
# Optional: The branch to deploy to production | ||
# production_branch: main | ||
# The name of the Cloudflare Pages project | ||
project_name: app-truffle-vip | ||
# The name of the yarn workspace being deployed | ||
workspace_name: app.truffle.vip | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# `yarn` | ||
> Run `yarn install`` with node_modules linker and cache enabled | ||
## Usage | ||
```yaml | ||
- | ||
name: Install dependencies | ||
uses: ./.github/actions/yarn | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters