Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync with main #83

Merged
merged 4 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ name: "CodeQL"

on:
push:
branches: [ "main" ]
branches:
- '**'
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches:
- '**'
schedule:
- cron: '45 10 * * 5'

Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/docker-hub-image-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ name: Build and push docker images for main branch

# Controls when the workflow will run
on:
workflow_run:
workflows: ["CodeQL"]
branches: [main,'release-*']
types:
- completed
push:
branches:
- 'main'
- 'release-*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/docker-hub-image-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build and push docker images for git tag

# Controls when the workflow will run
on:
workflow_run:
workflows: ["CodeQL"]
push:
tags:
- 'v*.*.*'
Expand Down Expand Up @@ -46,9 +44,13 @@ jobs:
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set output
- name: Set Docker tag
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
run: echo "tag=${GITHUB_REF#refs/*/} | sed 's/v//g'" >> $GITHUB_OUTPUT

- name: New docker image tag
run: echo "New docker image tag ${{ steps.vars.outputs.tag }}"

- name: Build and push
uses: docker/build-push-action@v5
continue-on-error: true
Expand All @@ -59,4 +61,4 @@ jobs:
tags: ${{ matrix.image }}:${{ steps.vars.outputs.tag }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
AGENT_VERSION={{ steps.vars.outputs.tag }}
AGENT_VERSION=${{ steps.vars.outputs.tag }}
7 changes: 4 additions & 3 deletions .github/workflows/snyk-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Snyk Security

on:
push:
branches: ["main" ]
branches:
- '**'
pull_request:
branches: ["main"]

branches:
- '**'
permissions:
contents: read

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-wazuh-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
branches:
- 'main'
- 'release-*'
tags:
- 'v*.*.*'

Expand Down
Loading