Skip to content

Commit

Permalink
Maintenance
Browse files Browse the repository at this point in the history
-Attempt to re-base on Bullseye via my own image.
-Attempt multi-arch build
  • Loading branch information
kjake committed Mar 23, 2024
1 parent c4ab8df commit 1eef211
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 21 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/anchore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
uses: anchore/scan-action@main
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: build local container
uses: docker/build-push-action@v5
with:
tags: localbuild/testimage:latest
push: false
load: true
- name: Scan image
uses: anchore/scan-action@v3
with:
image: "localbuild/testimage:latest"
acs-report-enable: true
output-format: sarif
fail-build: false
severity-cutoff: high
severity-cutoff: critical
only-fixed: true
- name: Upload Anchore Scan Report
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
30 changes: 18 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker

on:
schedule:
- cron: '0 6 * * 1'
- cron: '0 6 * * *'
push:
branches:
- master
Expand All @@ -16,14 +16,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME:latest

- name: Log into registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username ${{ secrets.DOCKER_USERNAME }} --password-stdin

- name: Push image
run: |
docker image push $IMAGE_NAME:latest
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/386,linux/amd64,linux/arm64/v8,linux/arm/v5,linux/arm/v7,linux/ppc64le,linux/s390x,linux/mips64le
tags: ${{ env.IMAGE_NAME }}:latest
push: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:buster-slim
FROM kjake/base

MAINTAINER kjake

Expand Down

0 comments on commit 1eef211

Please sign in to comment.