Skip to content

Commit

Permalink
tag test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
anikobartos committed Sep 8, 2023
1 parent a722043 commit 833847e
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
name: Docker Build & Publish

# on:
# push:
# branches:
# - main
on: [push]
# on:
# push:
# tags:
# - '*'
on:
push:
tags:
- '*'

env:
REGISTRY: opswat
Expand All @@ -27,21 +22,16 @@ jobs:
# username: ${{ secrets.DOCKERHUB_USER }}
# password: ${{ secrets.DOCKERHUB_PASS }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}


- run: echo "imagename ${{ env.REPO_NAME }}"

- run: echo "TAG ${{ github.ref_name }}"


# - name: Build and push
# uses: docker/build-push-action@v4
# - name: Extract Docker metadata
# id: meta
# uses: docker/metadata-action@v4
# with:
# push: true
# tags: ${{ github.ref_name }}
# build-args: version=${{ github.ref_name }}
# images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: false
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.ref_name }}
build-args: version=${{ github.ref_name }}

0 comments on commit 833847e

Please sign in to comment.