Skip to content

Merge pull request #16 from tls-attacker/dev #15

Merge pull request #16 from tls-attacker/dev

Merge pull request #16 from tls-attacker/dev #15

Workflow file for this run

name: "Docker: Build and Push Image"
on:
push:
branches: [ "main" ]
tags:
- v**
jobs:
build-normal:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
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: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-reportgen:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
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: .
file: Dockerfile_report_generator
push: true
tags: ${{ steps.meta.outputs.tags }}-reportgen
labels: ${{ steps.meta.outputs.labels }}