-
Notifications
You must be signed in to change notification settings - Fork 0
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
36 changed files
with
396 additions
and
2,925 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 |
---|---|---|
|
@@ -19,33 +19,34 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: build | ||
run: | | ||
make build | ||
- name: Create release tag | ||
run: | | ||
TAG=$(./get-tag) | ||
echo TAG=${TAG} >> $GITHUB_ENV | ||
git config user.name "$AUTHOR" | ||
git config user.email "<$EMAIL>" | ||
TAG=$(./get-tag) | ||
git tag -a $TAG -m "Release $TAG" | ||
git push --tags | ||
echo TAG=${TAG} >> $GITHUB_ENV | ||
- name: Build container | ||
run: | | ||
IMAGE=$(make container | grep "Successfully tagged" | awk '{print $3;}') | ||
if [[ -z $(docker images -q $IMAGE) ]]; then | ||
echo "Image $IMAGE not found" | ||
exit 1 | ||
fi | ||
echo IMAGE=$IMAGE >> $GITHUB_ENV | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push container | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
docker push $IMAGE | ||
- name: Build and push Docker images | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: docker/Dockerfile | ||
platforms: ${{ matrix.platforms }} | ||
push: true | ||
tags: ghcr.io/${{ github.repository }}:${{ env.TAG }} | ||
|
||
- uses: ncipollo/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) 2022 AlertAvert.com. All rights reserved. | ||
# Author: Marco Massenzio ([email protected]) | ||
# | ||
name: Build & Test | ||
name: Test | ||
|
||
on: | ||
push: | ||
|
@@ -28,4 +28,4 @@ jobs: | |
run: | | ||
mkdir -p ${HOME}/.aws && cp data/credentials ${HOME}/.aws/ | ||
export AWS_REGION=us-west-2 | ||
go test ./api ./grpc ./pubsub ./server ./storage | ||
go test ./api ./grpc ./pubsub ./storage |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.