Skip to content

Commit 74e8ade

Browse files
committed
ci(flux): [skip-ci] Update image from automation
1 parent ef2be69 commit 74e8ade

File tree

2 files changed

+53
-52
lines changed

2 files changed

+53
-52
lines changed

.github/workflows/build.yml

+38-37
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Build
22
on:
33
push:
44
branches:
5-
- master
5+
- master
66
pull_request:
77
branches:
8-
- master
8+
- master
99
env:
1010
SCRIPTS_NO_INTERACTIVE: "true"
1111
defaults:
@@ -17,48 +17,49 @@ jobs:
1717
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-go@v2
22-
with:
23-
go-version: "^1.15"
24-
- run: |
25-
make
26-
git --no-pager diff -- ':(exclude)go.sum' && git diff --quiet -- ':(exclude)go.sum'
27-
- uses: codecov/codecov-action@v1
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-go@v2
22+
with:
23+
go-version: "^1.15"
24+
- run: |
25+
make
26+
git --no-pager diff -- ':(exclude)go.sum' && git diff --quiet -- ':(exclude)go.sum'
27+
- uses: codecov/codecov-action@v1
2828
package:
2929
name: Docker
3030
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
3131
runs-on: ubuntu-latest
3232
steps:
33-
- name: Set up Docker Buildx
34-
uses: docker/setup-buildx-action@v1
35-
- name: Login to DockerHub
36-
uses: docker/login-action@v1
37-
with:
38-
username: ${{ secrets.DOCKER_USER }}
39-
password: ${{ secrets.DOCKER_PASS }}
40-
- uses: actions/checkout@v2
41-
- uses: actions/setup-go@v2
42-
with:
43-
go-version: "^1.15"
44-
- name: Build
45-
run: |
46-
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "release"
47-
DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release build docker
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v1
35+
- name: Login to DockerHub
36+
uses: docker/login-action@v1
37+
with:
38+
username: ${{ secrets.DOCKER_USER }}
39+
password: ${{ secrets.DOCKER_PASS }}
40+
- uses: actions/checkout@v2
41+
- uses: actions/setup-go@v2
42+
with:
43+
go-version: "^1.15"
44+
- name: Build
45+
run: |
46+
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "release"
47+
DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release build docker
4848
publish:
4949
name: Publish
50-
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')
50+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message),
51+
'[skip-ci]')
5152
runs-on: ubuntu-latest
5253
needs: package
5354
steps:
54-
- uses: actions/checkout@v2
55-
- name: Publish
56-
env:
57-
DOCKER_USER: ${{ secrets.DOCKER_USER }}
58-
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
59-
run: |
60-
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "docker_promote"
61-
scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version)"
62-
- name: GoReport
63-
run: |
64-
curl --disable --silent --show-error --location --max-time 30 -X POST https://goreportcard.com/checks?repo=github.com/${GITHUB_REPOSITORY}
55+
- uses: actions/checkout@v2
56+
- name: Publish
57+
env:
58+
DOCKER_USER: ${{ secrets.DOCKER_USER }}
59+
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
60+
run: |
61+
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "docker_promote"
62+
scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version)"
63+
- name: GoReport
64+
run: |
65+
curl --disable --silent --show-error --location --max-time 30 -X POST https://goreportcard.com/checks?repo=github.com/${GITHUB_REPOSITORY}

.github/workflows/codeql-analysis.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
branches: [master]
77
schedule:
8-
- cron: "0 0 * * 6"
8+
- cron: "0 0 * * 6"
99
jobs:
1010
analyze:
1111
name: Analyze
@@ -17,17 +17,17 @@ jobs:
1717
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
1818
language: ["go"]
1919
steps:
20-
- name: Checkout repository
21-
uses: actions/checkout@v2
22-
with:
23-
fetch-depth: 2
24-
- run: git checkout HEAD^2
25-
if: ${{ github.event_name == 'pull_request' }}
26-
- name: Initialize CodeQL
27-
uses: github/codeql-action/init@v1
28-
with:
29-
languages: ${{ matrix.language }}
30-
- name: Autobuild
31-
run: make build
32-
- name: Perform CodeQL Analysis
33-
uses: github/codeql-action/analyze@v1
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 2
24+
- run: git checkout HEAD^2
25+
if: ${{ github.event_name == 'pull_request' }}
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v1
28+
with:
29+
languages: ${{ matrix.language }}
30+
- name: Autobuild
31+
run: make build
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)