disabled arm64 build for now #26
Workflow file for this run
This file contains hidden or 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
name: ghcr | |
on: | |
push: | |
tags: | |
- "v*" | |
env: | |
IMAGE_NAME: template-langgraph | |
jobs: | |
ghcr: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set Versions | |
uses: actions/github-script@v8 | |
id: set_version | |
with: | |
script: | | |
const tag = context.ref.substring(10) | |
const no_v = tag.replace('v', '') | |
const dash_index = no_v.lastIndexOf('-') | |
const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v | |
core.setOutput('tag', tag) | |
core.setOutput('no-v', no_v) | |
core.setOutput('no-dash', no_dash) | |
- name: Set meta data tag = ${{steps.set_version.outputs.no-dash}} | |
uses: docker/metadata-action@v5 | |
id: meta | |
with: | |
images: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} | |
tags: | | |
type=semver,pattern={{version}},value=v${{steps.set_version.outputs.no-dash}} | |
type=raw,value=latest | |
- uses: docker/build-push-action@v6 | |
with: | |
push: true | |
context: . | |
platforms: linux/amd64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |