-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support to summarize by replying, introduce unstable docker ima…
…ge build (#113)
- Loading branch information
1 parent
ba30375
commit 721dfc0
Showing
6 changed files
with
112 additions
and
36 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
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,92 @@ | ||
name: Release Build | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
hub_build: | ||
name: Build for Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Fetch version | ||
id: version | ||
run: | | ||
export LAST_TAGGED_COMMIT=$(git rev-list --tags --max-count=1) | ||
export LAST_TAG=$(git describe --tags $LAST_TAGGED_COMMIT) | ||
echo "version=${LAST_TAG#v}" >> $GITHUB_OUTPUT | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Sign in to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | ||
|
||
- name: Create image tags | ||
id: dockerinfo | ||
run: | | ||
echo "taglatest=${{ github.repository_owner }}/insights-bot:latest" >> $GITHUB_OUTPUT | ||
echo "tag=${{ github.repository_owner }}/insights-bot:${{ steps.version.outputs.version }}" >> $GITHUB_OUTPUT | ||
- name: Build and Push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: true | ||
no-cache: false | ||
tags: | | ||
${{ steps.dockerinfo.outputs.taglatest }} | ||
${{ steps.dockerinfo.outputs.tag }} | ||
ghcr_build: | ||
name: Build for GitHub Container Registry | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Fetch version | ||
id: version | ||
run: | | ||
export LAST_TAGGED_COMMIT=$(git rev-list --tags --max-count=1) | ||
export LAST_TAG=$(git describe --tags $LAST_TAGGED_COMMIT) | ||
echo "version=${LAST_TAG#v}" >> $GITHUB_OUTPUT | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Sign in to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create image tags | ||
id: dockerinfo | ||
run: | | ||
echo "taglatest=ghcr.io/${{ github.repository_owner }}/insights-bot:latest" >> $GITHUB_OUTPUT | ||
echo "tag=ghcr.io/${{ github.repository_owner }}/insights-bot:${{ steps.version.outputs.version }}" >> $GITHUB_OUTPUT | ||
- name: Build and Push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: true | ||
no-cache: false | ||
tags: | | ||
${{ steps.dockerinfo.outputs.taglatest }} | ||
${{ steps.dockerinfo.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
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