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

Copied bin to expected file by Dockerfile #409

Merged
merged 1 commit into from
Feb 13, 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
8 changes: 1 addition & 7 deletions .github/actions/build/binaries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ inputs:
golang_version:
required: false
description: Define the version of golang to compile with
default: 1.18.1


default: 1.21.3

runs:
using: "composite"
Expand All @@ -32,7 +30,6 @@ runs:
with:
fetch-depth: 2


########################### Install go to env ###########################
- name: Set up Go
uses: actions/[email protected]
Expand All @@ -41,13 +38,11 @@ runs:
- run: go version
shell: bash


########################### Get GO deps #############################
- name: Get GO deps
run: go mod download
shell: bash


########################### Build osctrl inputs.osctrl_component ###########################
- name: Build osctrl component
run: |
Expand All @@ -56,7 +51,6 @@ runs:
./${{ inputs.osctrl_component }}
shell: bash


########################### Upload artifacts ###########################
- name: Upload osctrl binaries
uses: actions/[email protected]
Expand Down
17 changes: 12 additions & 5 deletions .github/actions/build/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ inputs:
description: Define the Docker tag
docker_hub_org:
required: true
description: Pass DockerHub org to aciton
description: Pass DockerHub org to action
docker_hub_username:
required: true
description: Pass DockerHub username to aciton
description: Pass DockerHub username to action
docker_hub_access_token:
required: true
description: Pass DockerHub access token to aciton
description: Pass DockerHub access token to action

outputs:
docker_image_digest:
description: Dockerhub image digest
value: ${{ toJson(steps.docker_build.outputs.digest) }}


runs:
using: "composite"
steps:
Expand All @@ -42,11 +41,19 @@ runs:
fetch-depth: 2

########################### Download osctrl binary ###########################
- name: Download a osctrl binaries
- name: Download osctrl binary
uses: actions/[email protected]
with:
name: osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin

########################### Copy binary to prepare for Docker ###########################
- name: Copy binary to prepare for Docker
shell: bash
run: |
cp \
osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin \
osctrl-${{ inputs.osctrl_component }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.bin

########################### Log into Dockerhub ###########################
- name: Login to Docker Hub
uses: docker/[email protected]
Expand Down
3 changes: 1 addition & 2 deletions .github/actions/test/binaries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ inputs:
golang_version:
required: false
description: Define the version of golang to compile with
default: 1.18.1

default: 1.21.3

runs:
using: "composite"
Expand Down
Loading