Skip to content

download named static report #25

download named static report

download named static report #25

Workflow file for this run

name: "Docker: Build and Push Image"
on:
push:
branches: [ "main" ]
tags:
- v**
pull_request:
branches: [ "main" ]
jobs:
build-normal:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/tls-attacker/anvil-web
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_REGISTRY_WRITE }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-reportgen:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/tls-attacker/anvil-web
flavor: |
suffix=-reportgen,onlatest=true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_REGISTRY_WRITE }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile_report_generator
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}