-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgraded dependecies, docker images, added dedot option (#20)
* upgraded dependecies, docker images, added dedot option * fixes git secrets workfow, added auto release workflow
- Loading branch information
1 parent
9446cb9
commit b33e18b
Showing
13 changed files
with
189 additions
and
100 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,91 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Get the repository's code | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# https://github.com/docker/setup-qemu-action | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
# https://github.com/docker/setup-buildx-action | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to Docker Hub | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Docker meta | ||
id: dockeraction # you'll use this in the next step | ||
uses: docker/metadata-action@v3 | ||
with: | ||
# list of Docker images to use as base name for tags | ||
images: | | ||
logzio/fluent-bit-output | ||
flavor: | | ||
latest=false | ||
# Docker tags based on the following events/attributes | ||
|
||
- name: Build and push amd64 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./test/Dockerfile.arm | ||
platforms: linux/amd64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.dockeraction.outputs.tags }}-amd | ||
labels: ${{ steps.dockeraction.outputs.labels }} | ||
|
||
|
||
- name: Build and push amd64 latest | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./test/Dockerfile.arm | ||
platforms: linux/amd64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: logzio/fluent-bit-output:latest-amd | ||
labels: ${{ steps.dockeraction.outputs.labels }} | ||
|
||
- name: Build and push arm64 latest | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./test/Dockerfile.arm | ||
platforms: linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: logzio/fluent-bit-output:latest-arm | ||
labels: ${{ steps.dockeraction.outputs.labels }} | ||
|
||
- name: Build and push arm64 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./test/Dockerfile.arm | ||
platforms: linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.dockeraction.outputs.tags }}-arm | ||
labels: ${{ steps.dockeraction.outputs.labels }} | ||
|
||
- name: Create manifest version | ||
run: | | ||
docker manifest create ${{ steps.dockeraction.outputs.tags }} --amend ${{ steps.dockeraction.outputs.tags }}-arm --amend ${{ steps.dockeraction.outputs.tags }}-amd | ||
- name: Create manifest latest | ||
run: | | ||
docker manifest create logzio/fluent-bit-output:latest --amend logzio/fluent-bit-output:latest-arm --amend logzio/fluent-bit-output:latest-amd | ||
- name: Push manifest latest | ||
run: | | ||
docker manifest push logzio/fluent-bit-output:latest | ||
- name: Push manifest version | ||
run: | | ||
docker manifest push ${{ steps.dockeraction.outputs.tags }} |
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 |
---|---|---|
@@ -1,33 +1,32 @@ | ||
name: git-secrets | ||
|
||
# Controls when the workflow will run | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
on: [push] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "main" | ||
git-secrets: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-18.04 | ||
|
||
runs-on: ubuntu-22.04 | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Check Out Source Code | ||
uses: actions/checkout@v2 | ||
|
||
uses: actions/checkout@v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Installing dependencies | ||
run: | ||
sudo apt-get install git less openssh-server | ||
sudo apt-get install less openssh-server | ||
- name: Installing scanning tool | ||
run: | | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
ln -s "$(which echo)" /usr/local/bin/say | ||
brew install git-secrets | ||
git secrets --install | ||
git secrets --register-aws | ||
git secrets --register-aws | ||
- name: Running scanning tool | ||
run: | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
git secrets --scan |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.15.3 as gobuilder | ||
FROM golang:1.18.4 as gobuilder | ||
|
||
ENV GOOS=linux\ | ||
GOARCH=amd64 | ||
|
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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
module github.com/logzio/fluent-bit-logzio-output | ||
|
||
go 1.15 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/fluent/fluent-bit-go v0.0.0-20200729034236-b9c0d6a20853 | ||
github.com/stretchr/testify v1.8.0 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/ugorji/go/codec v1.1.7 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.