Skip to content

Commit

Permalink
Updated workflows based on v1.4.1 migrated version
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaramRCDAC committed Aug 23, 2024
1 parent 29242bd commit 7dee469
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 9 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/cdac-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ jobs:
#- name: Build the PFCP Agent Docker image
# run: DOCKER_TARGETS=pfcpiface make docker-build

build-ptf:
if: github.event_name == 'pull_request' && github.repository_owner == '5GC-DEV'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ptf
steps:
- uses: actions/checkout@v4

- name: Build PTF image
run: make build

lint:
name: lint
runs-on: ubuntu-latest
Expand All @@ -45,7 +57,7 @@ jobs:
go-version-file: 'go.mod'

- name: golangci-lint
uses: golangci/golangci-lint-action@v5.0.0
uses: golangci/golangci-lint-action@v6.0.1
with:
version: latest
args: --out-format=colored-line-number -v --config ./.golangci.yml --timeout=10m
Expand Down Expand Up @@ -75,7 +87,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check Spelling
uses: rojopolis/spellcheck-github-actions@0.36.0
uses: rojopolis/spellcheck-github-actions@0.37.0
with:
config_path: .spellcheck.yml
task_name: Markdown
Expand Down Expand Up @@ -182,7 +194,7 @@ jobs:
with:
go-version-file: 'go.mod'

- uses: docker/login-action@v3.1.0
- uses: docker/login-action@v3.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DCKRUSER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cdac-release-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- run: echo GIT_SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV

- uses: docker/login-action@v3
- uses: docker/login-action@v3.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DCKRUSER }}
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/iosmcn-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
#- name: Build the PFCP Agent Docker image
# run: DOCKER_TARGETS=pfcpiface make docker-build

build-ptf:
if: github.event_name == 'pull_request' && github.repository_owner == 'ios-mcn-core'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ptf
steps:
- uses: actions/checkout@v4

- name: Build PTF image
run: make build

lint:
name: lint
runs-on: ubuntu-latest
Expand All @@ -44,10 +56,10 @@ jobs:
go-version-file: 'go.mod'

- name: golangci-lint
uses: golangci/golangci-lint-action@v5.0.0
uses: golangci/golangci-lint-action@v6.0.1
with:
version: latest
args: -v --config ./.golangci.yml --timeout=10m
args: --out-format=colored-line-number -v --config ./.golangci.yml --timeout=10m

hadolint:
name: hadolint
Expand All @@ -74,7 +86,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check Spelling
uses: rojopolis/spellcheck-github-actions@0.36.0
uses: rojopolis/spellcheck-github-actions@0.37.0
with:
config_path: .spellcheck.yml
task_name: Markdown
Expand Down Expand Up @@ -181,7 +193,7 @@ jobs:
with:
go-version-file: 'go.mod'

- uses: docker/login-action@v3.1.0
- uses: docker/login-action@v3.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.GHCRUSER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iosmcn-release-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- run: echo GIT_SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV

- uses: docker/login-action@v3
- uses: docker/login-action@v3.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.GHCRUSER }}
Expand Down

0 comments on commit 7dee469

Please sign in to comment.