Skip to content

docs: Minor update to Releasing steps in the README #9

docs: Minor update to Releasing steps in the README

docs: Minor update to Releasing steps in the README #9

name: threatcl-action pre-release
on:
push:
branches:
- main
tags-ignore:
- "*"
paths-ignore:
- 'action.yml'
permissions:
contents: read
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
pre-release-image-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
- name: Build docker image but no push
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}