Skip to content

Commit

Permalink
run only tag with 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
anikobartos committed Sep 18, 2023
1 parent 7ea530d commit a04ac0a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Docker Build & Publish
on:
push:
tags:
- '*'
# Assemblyline tags start with 4.4.
- '4.4.*'

env:
REGISTRY: opswat
Expand All @@ -12,7 +13,6 @@ env:
jobs:
dockerbuild:
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand All @@ -27,13 +27,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
push: false
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.ref_name }}
build-args: version=${{ github.ref_name }}
print_branch_name:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Print branch name
run: echo "Actual branch is ${{ github.ref }}."

0 comments on commit a04ac0a

Please sign in to comment.