Skip to content

Commit

Permalink
provenance 1.18.0; mamoru-sniffer-go v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gofmanaa committed Apr 19, 2024
1 parent dd0940e commit 4f32902
Show file tree
Hide file tree
Showing 24 changed files with 1,096 additions and 1,275 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/changelog.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

85 changes: 0 additions & 85 deletions .github/workflows/docker.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/lint.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/mamoru-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Test

on:
push:
branches:
- master
- 'mamoru*'
- develop


pull_request:
branches:
- master
- 'mamoru*'
- develop


jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
.github/workflows/lint.yml
scripts/no-now-lint.sh
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21'
- uses: golangci/golangci-lint-action@v4
if: env.GIT_DIFF
with:
# If you change this version, be sure to also change it in contrib/devtools/Makefile.
version: v1.54
args: --timeout 10m --out-${NO_FUTURE}format colored-line-number
github-token: ${{ secrets.github_token }}
- name: No Now Usage
if: env.GIT_DIFF
run: scripts/no-now-lint.sh

- name: Build with Makefile
run: |
make build
57 changes: 57 additions & 0 deletions .github/workflows/mamoru-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Build docker image"
on:
push:
branches:
- master
- 'mamoru*'
- develop

env:
REPOSITORY: mamorufoundation/provenance-sniffer

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Get current date
id: date
run: echo "::set-output name=date::$(date -u +'%Y-%m-%d')"

# - uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.MAMORU_ETHERMINT_SSH_PRIVATE_KEY }}
#
# - name: Prepare git and ssh config for build context
# run: |
# mkdir -p root-config
# cp -r ~/.gitconfig ~/.ssh root-config/

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
build-args: |
GIT_REVISION=${{ github.sha }}
BUILD_DATE=${{ steps.date.outputs.date }}
PROFILE=release
COMMIT=${{ github.sha }}
push: true
tags: |
${{ env.REPOSITORY }}:latest
${{ env.REPOSITORY }}:${{ github.sha }}
ssh: |
default=${{ env.SSH_AUTH_SOCK }}
Loading

0 comments on commit 4f32902

Please sign in to comment.