Skip to content

Add optional --timestamp and --category parameters #19

Add optional --timestamp and --category parameters

Add optional --timestamp and --category parameters #19

Workflow file for this run

name: Build release
on:
push:
branches:
- master
jobs:
release_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: '0'
- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.ROBOT_NAME }}
password: ${{ secrets.ROBOT_PASS }}
- name: Bump version
id: bumptag
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: 'patch'
DRY_RUN: true
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: quay.io/thehyve/report-vulnerability:${{ steps.bumptag.outputs.new_tag }},quay.io/thehyve/report-vulnerability:latest
- name: Create tag
uses: actions/github-script@v6
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ steps.bumptag.outputs.new_tag }}',
sha: context.sha
})