Skip to content

Merge pull request #15 from wesley-dean-flexion/docs_update #5

Merge pull request #15 from wesley-dean-flexion/docs_update

Merge pull request #15 from wesley-dean-flexion/docs_update #5

Workflow file for this run

---
name: Publish
# yamllint disable-line rule:truthy
on:
push:
branches: [main, master]
workflow_dispatch:
permissions: read-all
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Packages
uses: docker/login-action@v2
with:
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PAT }}
registry: ghcr.io
- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PAT }}
registry: registry.hub.docker.com
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ secrets.GHCR_USERNAME }}/${{ github.event.repository.name }}:latest
registry.hub.docker.com/${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest
- name: update DockerHub description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PAT }}
repository: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
- name: update SBOM
uses: anchore/sbom-action@v0
with:
image: ghcr.io/${{ secrets.GHCR_USERNAME }}/${{ github.event.repository.name }}:latest
registry-username: ${{ secrets.GHCR_USERNAME }}
registry-password: ${{ secrets.GHCR_PAT }}
artifact-name: sbom.spdx