test
This commit is contained in:
@@ -45,21 +45,19 @@ runs:
|
|||||||
CONTAINER="${{ steps.getContainer.outputs.container }}"
|
CONTAINER="${{ steps.getContainer.outputs.container }}"
|
||||||
|
|
||||||
CACHED_CONTAINER="$CONTAINER-activated"
|
CACHED_CONTAINER="$CONTAINER-activated"
|
||||||
if [[ -z "$(docker image ls | grep $CACHED_CONTAINER)" ]]; then
|
|
||||||
# Activate the license on build.
|
# Activate the license on build.
|
||||||
DOCKER_BUILDKIT=1 \
|
# DOCKER_BUILDKIT=1 \
|
||||||
SERIAL="${{ inputs.serial }}" USERNAME="${{ inputs.email }}" PASSWORD="${{ inputs.password }}" \
|
# 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 \
|
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 }}
|
-t $CACHED_CONTAINER --build-arg IMAGE=$CONTAINER ${{ github.action_path }}
|
||||||
fi
|
|
||||||
|
|
||||||
docker tag $CACHED_CONTAINER ${{ inputs.imageTag }}
|
docker tag $CACHED_CONTAINER ${{ inputs.imageTag }}
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: "Run Unity command."
|
- name: "Run Unity command."
|
||||||
uses: act/unity/unity@master
|
uses: act/unity/unity@master
|
||||||
with:
|
with:
|
||||||
# serial: ${{ inputs.serial }}
|
serial: ${{ inputs.serial }}
|
||||||
serial: "activated"
|
# serial: "activated"
|
||||||
email: ${{ inputs.email }}
|
email: ${{ inputs.email }}
|
||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
command: ${{ inputs.command }}
|
command: ${{ inputs.command }}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ DEFAULT_ARGS="-quit -logFile -"
|
|||||||
rm -rf $HOME/.config/unity3d
|
rm -rf $HOME/.config/unity3d
|
||||||
rm -rf /home/unity/.config/unity3d
|
rm -rf /home/unity/.config/unity3d
|
||||||
|
|
||||||
ls -al Library
|
ls -al
|
||||||
exit 0
|
#exit 0
|
||||||
#Add ssh key information for resolving packages.
|
#Add ssh key information for resolving packages.
|
||||||
bash /scripts/add_ssh_keys.sh
|
bash /scripts/add_ssh_keys.sh
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,6 @@ runs:
|
|||||||
if: ${{ inputs.cacheVolume }}
|
if: ${{ inputs.cacheVolume }}
|
||||||
uses: act/common/docker/docker-cp@master
|
uses: act/common/docker/docker-cp@master
|
||||||
with:
|
with:
|
||||||
recreateVolume: true
|
recreateVolume: false
|
||||||
volume: ${{ inputs.cacheVolume }}
|
volume: ${{ inputs.cacheVolume }}
|
||||||
fromPath: Library
|
fromPath: Library
|
||||||
|
|||||||
Reference in New Issue
Block a user