Skip to content

Commit b0a2d4e

Browse files
authored
push to github based on github tag (#65)
1 parent 147c0b0 commit b0a2d4e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/docker-hub-image.yml

+13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
image: kennyopennix/wazuh-agent-amazonlinux
3333
- dockerfile: ./images/Dockerfie.ubuntu
3434
image: kennyopennix/wazuh-agent-ubuntu
35+
- dockerfile: ./Dockerfile
36+
image: opennix/wazuh-agent
37+
- dockerfile: ./images/Dockerfie.amazonlinux
38+
image: opennix/wazuh-agent-amazonlinux
39+
- dockerfile: ./images/Dockerfie.ubuntu
40+
image: opennix/wazuh-agent-ubuntu
3541
steps:
3642
- name: Checkout
3743
uses: actions/checkout@v4
@@ -53,6 +59,13 @@ jobs:
5359
images: ${{ matrix.image }}
5460
tags: |
5561
type=raw,value=latest,enable={{is_default_branch}}
62+
- name: Extract metadata (tags, labels) for Docker
63+
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} && github.event_name != 'pull_request'
64+
id: meta
65+
uses: docker/metadata-action@v5
66+
with:
67+
images: ${{ matrix.image }}
68+
tags: |
5669
type=semver,pattern={{version}}
5770
type=semver,pattern={{major}}.{{minor}}
5871
type=semver,pattern={{major}}

0 commit comments

Comments
 (0)