Skip to content

Commit

Permalink
build(deps): [#399] Use semantic versioning for plugins in github act…
Browse files Browse the repository at this point in the history
…ions. (#403)
  • Loading branch information
030 authored Dec 9, 2023
1 parent d2a56e9 commit 0191ab9
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 34 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
name: Check whether images are up-to-date
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
token: ${{ secrets.WORKFLOW_TOKEN }}
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Check Alpine
run: ./dip image --name=alpine --regex=^3\.[0-9]+\.[0-9]+$ --updateDockerfile
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5.0.0
with:
go-version: 1.19.0
- name: Check Golang
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
sed -i "s|\(releases\/download\/\)\([0-9]\+\.\)\{2\}[0-9]\+|\1${{ env.NEW_TAG }}|g" README.md
sed -i "s|\(n3dr\/releases\/tag\/\)\([0-9]\+\.\)\{2\}[0-9]\+|\1${{ env.NEW_TAG }}|g" ./docs/quickstarts/snippets/n3dr/DOWNLOAD.md
sed -i "s|\(releases\/download\/\)\([0-9]\+\.\)\{2\}[0-9]\+|\1${{ env.NEW_TAG }}|g" ./docs/quickstarts/snippets/n3dr/DOWNLOAD.md
- uses: EndBug/add-and-commit@v9
- uses: EndBug/add-and-commit@v9.1.3
with:
author_name: github-actions[bot]
author_email: 41898282+github-actions[bot]@users.noreply.github.com
Expand All @@ -80,7 +80,7 @@ jobs:
tar -xvf /tmp/git-chglog_0.15.1_linux_amd64.tar.gz -C /tmp
chmod +x /tmp/git-chglog
/tmp/git-chglog -o docs/CHANGELOG.md --config configs/chglog/config.yml --next-tag ${{ env.NEW_TAG }}
- uses: EndBug/add-and-commit@v9
- uses: EndBug/add-and-commit@v9.1.3
with:
author_name: github-actions[bot]
author_email: 41898282+github-actions[bot]@users.noreply.github.com
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
name: Analyze image efficiency
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Build image
run: docker build -t utrecht/n3dr:${{ github.sha }} .
- uses: 030/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3.0.0
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -22,7 +22,7 @@ jobs:
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5.1.0
with:
push: true
tags: utrecht/n3dr:${{ steps.version.outputs.version }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/dockle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ jobs:
runs-on: ubuntu-latest
name: Analyze image using dockle
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Build image
run: docker build -t utrecht/n3dr:${{ github.sha }} .
- uses: hands-lab/dockle-action@v1
- uses: goodwithtech/dockle-action@v0.1.2
with:
image: utrecht/n3dr:${{ github.sha }}
ignore: CIS-DI-0005,CIS-DI-0006
accept-key: libcrypto3,libssl3
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- os: windows-latest
shasum: sha512sum
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5.0.0
with:
go-version: 1.19.0
- name: Unit tests
Expand All @@ -27,7 +27,7 @@ jobs:
grep -v internal/app/n3dr/n3drtest |\
grep -v cmd/n3dr)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v3.1.4
with:
files: ./coverage.txt
flags: unittests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
env:
GO111MODULE: 'on'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5.0.0
with:
go-version: 1.19.0
- name: Download gosec
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
name: Analyze image using hadolint
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5.0.0
with:
go-version: 1.19.0
- name: Install bats
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- os: windows-latest
shasum: sha512sum
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
with:
ref: main
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5.0.0
with:
go-version: 1.19.0
- name: Set N3DR deliverable environment variable
Expand Down Expand Up @@ -59,14 +59,14 @@ jobs:
if: ${{ startsWith(matrix.os, 'windows') }}
# yamllint enable rule:line-length
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
uses: svenstaro/upload-release-action@v2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: cmd/n3dr/${{ env.n3dr-deliverable }}
asset_name: ${{ env.n3dr-deliverable }}
tag: ${{ github.ref }}
- name: Upload checksums
uses: svenstaro/upload-release-action@v2
uses: svenstaro/upload-release-action@v2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: cmd/n3dr/${{ env.n3dr-deliverable }}.sha512.txt
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/snapcraft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
needs: [release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
with:
ref: main
- uses: snapcore/action-build@v1
- uses: snapcore/action-build@v1.2.0
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
- uses: snapcore/action-publish@v1.2.0
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
with:
Expand Down
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@v4
uses: actions/checkout@v4.1.1
- name: Build an image from Dockerfile
run: |
docker build -t utrecht/n3dr:${{ github.sha }} .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
YAMLLINT_CONFIG_FILE: /code/configs/.yamllint.yaml
options: --cpus 1
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: run yamllint
run: yamllint .
2 changes: 1 addition & 1 deletion build/package/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: n3dr
base: core20
version: 7.3.2
version: 7.3.3
summary: Nexus3 Disaster Recovery
description: |
Download all artifacts at once or migrate automatically from Nexus to Nexus.
Expand Down
8 changes: 6 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@


<a name="7.3.3"></a>
## [7.3.3] - 2023-12-02
## [7.3.3] - 2023-12-09
### Build
- **deps:** [[#399](https://github.com/030/n3dr/issues/399)] Use semantic versioning for plugins in github actions.
- **deps:** bump actions/checkout from 3 to 4 ([#394](https://github.com/030/n3dr/issues/394))

### Fix
- https=false otherwise https was not disabled.
- https=false otherwise https was not disabled. ([#401](https://github.com/030/n3dr/issues/401))


<a name="7.3.2"></a>
Expand Down
6 changes: 3 additions & 3 deletions docs/quickstarts/snippets/n3dr/DOWNLOAD.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Download

Download the [latest N3DR binary](https://github.com/030/n3dr/releases/tag/7.3.2):
Download the [latest N3DR binary](https://github.com/030/n3dr/releases/tag/7.3.3):

```bash
cd /tmp && \
curl -L https://github.com/030/n3dr/releases/download/7.3.2/n3dr-ubuntu-latest \
curl -L https://github.com/030/n3dr/releases/download/7.3.3/n3dr-ubuntu-latest \
-o n3dr-ubuntu-latest && \
curl -L https://github.com/030/n3dr/releases/download/7.3.2/\
curl -L https://github.com/030/n3dr/releases/download/7.3.3/\
n3dr-ubuntu-latest.sha512.txt \
-o n3dr-ubuntu-latest.sha512.txt && \
sha512sum -c n3dr-ubuntu-latest.sha512.txt && \
Expand Down

0 comments on commit 0191ab9

Please sign in to comment.