Skip to content

run only tag on test #18

run only tag on test

run only tag on test #18

Workflow file for this run

name: Docker Build & Publish
on:
push:
branches:
- '*test*'
tags:
- '*'
env:
REGISTRY: opswat
REPO_NAME: ${{ github.event.repository.name }}
jobs:
dockerbuild:
if: github.ref == 'refs/heads/test'
runs-on: ubuntu-latest
steps:
- name: Print branch name
run: echo "Actual branch is ${{ github.ref }}."
- name: Dump github context
run: echo "$GITHUB_CONTEXT"
shell: bash
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
print_name:
if: github.ref != 'refs/heads/test'
runs-on: ubuntu-latest
steps:
- name: Print branch name
run: echo "Actual branch is ${{ github.ref }}.."