Skip to content

Commit

Permalink
feat:update GitHub Action.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman committed Jun 21, 2024
1 parent 39966e2 commit 136aee5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ jobs:
id: build
run: |
export use_docker_env=false
pushd polaris-agent-build/bin
cd polaris-agent-build/bin
bash ./build_docker.sh ${{ steps.get_version.outputs.VERSION }}
2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
id: build
run: |
export use_docker_env=false
pushd polaris-agent-build/bin
cd polaris-agent-build/bin
bash ./build.sh
bash ./build_example_docker.sh ${{ github.event.inputs.subdir }}
4 changes: 2 additions & 2 deletions polaris-agent-build/bin/build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e
version=$(xmllint --xpath "//*[local-name()='project']/*[local-name()='properties']/*[local-name()='revision']/text()" ../../pom.xml)
echo "${version}" > version.txt

sh ./build.sh
bash ./build.sh

docker_tag=$1

Expand Down Expand Up @@ -36,4 +36,4 @@ if [ ${pre_release} == 0 ]; then
extra_tags="-t ${docker_repository}/polaris-javaagent-init:latest"
fi

docker buildx build -f ./Dockerfile -t ${docker_repository}/polaris-javaagent-init:${docker_tag} --build-arg version=${version} ${extra_tags} --platform ${platforms} --push ./
#docker buildx build -f ./Dockerfile -t ${docker_repository}/polaris-javaagent-init:${docker_tag} --build-arg version=${version} ${extra_tags} --platform ${platforms} --push ./

0 comments on commit 136aee5

Please sign in to comment.