-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Replace separate hadolint, dockle and trivy by one workflow.
- Loading branch information
Showing
6 changed files
with
41 additions
and
89 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 |
---|---|---|
@@ -1,32 +1,12 @@ | ||
--- | ||
name: Docker | ||
'on': | ||
push: | ||
tags: | ||
- '*' | ||
'on': push | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
docker: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
- uses: actions/[email protected] | ||
- uses: schubergphilis/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: version | ||
id: version | ||
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/} | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
tags: utrecht/n3dr:${{ steps.version.outputs.version }} | ||
build-args: | | ||
VERSION=${{ github.ref }} | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
dockle-accept-key: libcrypto3,libssl3 | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,32 @@ | ||
--- | ||
name: Dockerhub | ||
'on': | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: version | ||
id: version | ||
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/} | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
tags: utrecht/n3dr:${{ steps.version.outputs.version }} | ||
build-args: | | ||
VERSION=${{ github.ref }} | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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