Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Update container-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprice18f authored Sep 8, 2023
1 parent 18ec58b commit d02a4b4
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,11 @@ on:

jobs:
build:
name: Build Docker Images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile

- name: Setup QEMU
uses: docker/setup-qemu-action@v1

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
uses: actions/checkout@v3

- name: Generate Docker metadata
id: meta
Expand All @@ -35,20 +25,31 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
flavor: |
latest=false
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile

- name: Setup QEMU
uses: docker/setup-qemu-action@v1

- name: Setup Docker Buildx
uses: docker/[email protected]

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push image to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
platform: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64

- name: Security scan
uses: anchore/scan-action@v3
Expand Down

0 comments on commit d02a4b4

Please sign in to comment.