Skip to content

Merge pull request #140 from center-for-threat-informed-defense/attack16 #156

Merge pull request #140 from center-for-threat-informed-defense/attack16

Merge pull request #140 from center-for-threat-informed-defense/attack16 #156

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- 'main'
tags:
- '*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get Docker metadata
id: af_meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
labels: org.opencontainers.image.url=https://ctid.mitre-engenuity.org/our-work/attack-flow/
- name: Build Attack Flow Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.af_meta.outputs.tags }}
labels: ${{ steps.af_meta.outputs.labels }}