This commit is contained in:
2023-03-25 22:27:10 -07:00
parent 90c07d6c20
commit 25644a65ef
3 changed files with 10 additions and 12 deletions

View File

@@ -45,21 +45,19 @@ runs:
CONTAINER="${{ steps.getContainer.outputs.container }}"
CACHED_CONTAINER="$CONTAINER-activated"
if [[ -z "$(docker image ls | grep $CACHED_CONTAINER)" ]]; then
# Activate the license on build.
DOCKER_BUILDKIT=1 \
SERIAL="${{ inputs.serial }}" USERNAME="${{ inputs.email }}" PASSWORD="${{ inputs.password }}" \
docker build --secret id=SERIAL,env=SERIAL --secret id=USERNAME,env=USERNAME --secret id=PASSWORD,env=PASSWORD \
-t $CACHED_CONTAINER --build-arg IMAGE=$CONTAINER ${{ github.action_path }}
fi
# Activate the license on build.
# DOCKER_BUILDKIT=1 \
# SERIAL="${{ inputs.serial }}" USERNAME="${{ inputs.email }}" PASSWORD="${{ inputs.password }}" \
docker build --secret id=SERIAL,env=SERIAL --secret id=USERNAME,env=USERNAME --secret id=PASSWORD,env=PASSWORD \
-t $CACHED_CONTAINER --build-arg IMAGE=$CONTAINER ${{ github.action_path }}
docker tag $CACHED_CONTAINER ${{ inputs.imageTag }}
shell: bash
- name: "Run Unity command."
uses: act/unity/unity@master
with:
# serial: ${{ inputs.serial }}
serial: "activated"
serial: ${{ inputs.serial }}
# serial: "activated"
email: ${{ inputs.email }}
password: ${{ inputs.password }}
command: ${{ inputs.command }}

View File

@@ -5,8 +5,8 @@ DEFAULT_ARGS="-quit -logFile -"
rm -rf $HOME/.config/unity3d
rm -rf /home/unity/.config/unity3d
ls -al Library
exit 0
ls -al
#exit 0
#Add ssh key information for resolving packages.
bash /scripts/add_ssh_keys.sh

View File

@@ -64,6 +64,6 @@ runs:
if: ${{ inputs.cacheVolume }}
uses: act/common/docker/docker-cp@master
with:
recreateVolume: true
recreateVolume: false
volume: ${{ inputs.cacheVolume }}
fromPath: Library