-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: build docker * fix: syntax * test: ignored * test: ignore * test: remove test branch
- Loading branch information
1 parent
5524645
commit a1ddace
Showing
1 changed file
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build Docker | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
# Publish semver tags as releases. | ||
tags: [ 'v*.*.*' ] | ||
paths-ignore: | ||
- '.devcontainer/**' | ||
- '.github/ISSUE_TEMPLATE/**' | ||
- 'images/**' | ||
- 'playground/**' | ||
- '**.md' | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
IMAGE_NAME: astra_agents_server | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- id: pre-step | ||
shell: bash | ||
run: echo "image-tag=$(git describe --tags --always)" >> $GITHUB_OUTPUT | ||
- name: Build & Publish to Github Container Registry | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: ${{ github.actor }}/${{ env.IMAGE_NAME }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
tags: "latest,${{ steps.pre-step.outputs.image-tag }}" | ||
no_push: ${{ github.event_name == 'pull_request' }} | ||
|