Skip to content

Commit

Permalink
Merge pull request #406 from jmpsec/bump-actions-updates
Browse files Browse the repository at this point in the history
Updates to actions and remove path for upload-artifacts
  • Loading branch information
javuto authored Feb 13, 2024
2 parents 47d9ac6 + c4352bb commit c4d5062
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions .github/actions/build/binaries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ runs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2


########################### Install go to env ###########################
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ inputs.golang_version }}
- run: go version
Expand All @@ -49,7 +49,7 @@ runs:


########################### Build osctrl inputs.osctrl_component ###########################
- name: Build osctrl-tls
- name: Build osctrl component
run: |
GOOS=${{ inputs.go_os }} GOARCH=${{ inputs.go_arch }} \
go build -o osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin \
Expand All @@ -59,8 +59,8 @@ runs:

########################### Upload artifacts ###########################
- name: Upload osctrl binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.1
with:
name: osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin
path: osctrl-${{ inputs.osctrl_component }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin
path: osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin
retention-days: 10
4 changes: 2 additions & 2 deletions .github/actions/build/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ runs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

########################### Download osctrl binary ###########################
- name: Download a osctrl binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin

Expand Down
10 changes: 5 additions & 5 deletions .github/actions/build/dpkg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ runs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

########################### Download osctrl binary ###########################
- name: Download a osctrl binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin

Expand All @@ -48,7 +48,7 @@ runs:
OSCTRL_VERSION: ${{ inputs.commit_sha }}

- name: Create DEB package contents
uses: jiro4989/build-deb-action@v2
uses: jiro4989/build-deb-action@v3.0.0
if: startsWith(github.ref, 'refs/tags/')
with:
package: osctrl-${{ inputs.osctrl_component }}
Expand All @@ -59,7 +59,7 @@ runs:
desc: "DEB package for osctrl-${OSCTRL_COMPONENT}-${OSCTRL_VERSION} Commit SHA: ${COMMIT_SHA}"

- name: Create DEB package contents
uses: jiro4989/build-deb-action@v2
uses: jiro4989/build-deb-action@v3.0.0
with:
package: osctrl-${{ inputs.osctrl_component }}
package_root: ".debpkg-osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}"
Expand All @@ -70,7 +70,7 @@ runs:

########################### Upload DEBs ###########################
- name: Upload osctrl DEBs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.1
with:
name: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}-${{ inputs.commit_sha }}_${{ inputs.go_arch }}.deb
path: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}-${{ inputs.commit_sha }}_${{ inputs.go_arch }}.deb
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/tagged_release/docker/codesign/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down
4 changes: 2 additions & 2 deletions .github/actions/tagged_release/github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ runs:
steps:
########################### Download osctrl binary ###########################
- name: Download osctrl binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin

Expand Down Expand Up @@ -53,7 +53,7 @@ runs:
########################### Download osctrl DEB package ###########################
- name: Download osctrl binaries
if: ${{ inputs.go_os }} == 'linux'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}-${{ inputs.commit_sha }}_${{ inputs.go_arch }}.deb

Expand Down
6 changes: 3 additions & 3 deletions .github/actions/test/binaries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ runs:
steps:
########################### Install go to env ###########################
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ inputs.golang_version }}
- run: go version
shell: bash

########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

########################### Lint golang code ###########################
- name: golangci-lint
Expand All @@ -50,7 +50,7 @@ runs:

########################### Download artifacts ###########################
- name: Download a osctrl binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.2
with:
name: osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_branch }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_and_test_main_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/create_tagged_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
steps:
########################### Checkout code ###########################
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 2

Expand Down

0 comments on commit c4d5062

Please sign in to comment.