Skip to content

Build & Publish Image #11

Build & Publish Image

Build & Publish Image #11

# Name of this GitHub Actions workflow.
name: Build & Publish Image
on:
# Scan on workflow call
workflow_call:
# Scan on-demand through GitHub Actions interface:
workflow_dispatch: {}
jobs:
build_and_push:
runs-on: ubuntu-latest
permissions:
packages: write
name: Build and publish
steps:
- uses: actions/[email protected]
- name: 'Login to GitHub Container Registry'
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build and publish Docker image'
run: |
docker build ./docker/ --tag ghcr.io/owasp/asvs/documentbuilder:latest
docker push ghcr.io/owasp/asvs/documentbuilder:latest