Skip to content

Commit

Permalink
fix(snap): [#290] Snap and release version 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Dec 17, 2022
1 parent 474e6ef commit 20ab152
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 56 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ jobs:
runs-on: ubuntu-latest
name: Check whether images are up-to-date
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.WORKFLOW_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ jobs:
runs-on: ubuntu-latest
name: Analyze image efficiency
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build image
run: docker build -t utrecht/n3dr:${{ github.sha }} .
- name: Dive
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ jobs:
runs-on: ubuntu-latest
name: Analyze image using dockle
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build image
run: docker build -t utrecht/n3dr:${{ github.sha }} .
- uses: hands-lab/dockle-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- os: windows-2019
shasum: sha512sum
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
env:
GO111MODULE: 'on'
steps:
- name: Checkout Source
uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ jobs:
runs-on: ubuntu-latest
name: Analyze image using hadolint
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
nexus-api-version: beta
shasum: sha512sum
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml → .github/workflows/release7.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
---
name: Release
'on':
push:
tags:
- '*'
name: release7
'on': [workflow_call]
jobs:
release:
release7:
name: Create Release
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -18,7 +15,9 @@ jobs:
- os: windows-2019
shasum: sha512sum
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: release/7
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/snapcraft.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/snapcraft7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: snapcraft7
'on':
push:
tags:
- 7.**
jobs:
release7:
uses: ./.github/workflows/release7.yml
snapcraft7:
needs: [release7]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: release/7
- uses: snapcore/action-build@v1
with:
path: build/package
id: snapcraft
- run: |
sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
n3dr --version | grep "[0-9]\."
- uses: snapcore/action-publish@v1
with:
store_login: ${{ secrets.SNAPCRAFT_LOGIN }}
snap: ${{ steps.snapcraft.outputs.snap }}
release: candidate
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build an image from Dockerfile
run: |
docker build -t utrecht/n3dr:${{ github.sha }} .
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
YAMLLINT_CONFIG_FILE: /code/configs/.yamllint.yaml
options: --cpus 1
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: run yamllint
run: yamllint .

0 comments on commit 20ab152

Please sign in to comment.