Skip to content

Commit

Permalink
fix: Docker publishing for -mocha and -arabica tags on v2.x (#3939)
Browse files Browse the repository at this point in the history
Part of #3934. 

Backports #3908 and
#3915 to v2.x.
  • Loading branch information
rootulp authored Oct 2, 2024
1 parent 73793b9 commit 9c12365
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ on:
push:
branches:
- main
- "v[0-9]+.x"
- "v*"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
- "v*"
pull_request:

jobs:
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/docker-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,35 @@ on:
push:
branches:
- "main"
- "v[0-9].[0-9].x"
- "v[0-9].[0-9][0-9].x"
- "v[0-9].x"
- "v*"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
- "v*"
pull_request:
workflow_dispatch:
inputs:
ref:
description: "The checkout reference (ie tag, branch, sha)"
required: true
type: string

jobs:
docker-security-build:
permissions:
contents: write
packages: write
uses: celestiaorg/.github/.github/workflows/[email protected].3
uses: celestiaorg/.github/.github/workflows/[email protected].5
with:
dockerfile: Dockerfile
dockerfile: docker/Dockerfile
checkout_ref: ${{ github.event.inputs.ref }}
secrets: inherit

docker-txsim-build:
permissions:
contents: write
packages: write
uses: celestiaorg/.github/.github/workflows/[email protected].3
uses: celestiaorg/.github/.github/workflows/[email protected].5
with:
dockerfile: docker/Dockerfile_txsim
packageName: txsim
checkout_ref: ${{ github.event.inputs.ref }}
secrets: inherit
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:

# hadolint lints the Dockerfile
hadolint:
uses: celestiaorg/.github/.github/workflows/[email protected]
uses: celestiaorg/.github/.github/workflows/[email protected]
with:
dockerfile: "docker/Dockerfile"

yamllint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ lint:
@echo "--> Running markdownlint"
@markdownlint --config .markdownlint.yaml '**/*.md'
@echo "--> Running hadolint"
@hadolint Dockerfile
@hadolint docker/Dockerfile docker/Dockerfile_txsim
@echo "--> Running yamllint"
@yamllint --no-warnings . -c .yamllint.yml

Expand Down
File renamed without changes.

0 comments on commit 9c12365

Please sign in to comment.