Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 authored Jun 26, 2024
1 parent 4f0f01c commit 719eaa9
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,47 @@ branding:
icon: 'command'
color: 'red'
runs:
using: 'docker'
image: 'Dockerfile'
#using: 'docker'
#image: 'Dockerfile'
using: composite
steps:
- name: 💎 Set Credential
id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ inputs.credentials }}

- name: 💎 Authentication
uses: 'google-github-actions/setup-gcloud@v2'
with:
install_components: 'alpha,cloud-datastore-emulator'

- name: 💎 Determine which runner to use
uses: actions/github-script@v7
with:
result-encoding: string
script: |
const { spawnSync } = require( 'child_process' )
const ls = spawnSync('ls', [ '-lh', '/usr' ] )
console.log( `stdout: ${ ls.stdout.toString() }` )
- name: 💎 Variables
shell: bash
id: variables
run: |
gcloud info
repo_name=${{ inputs.docker_hub_username }}/${{ inputs.image_name }}
image_tag=${{ inputs.image_tag }}
dev_image_tag="$image_tag"
repo_ref="$repo_name:$image_tag"
image_ref="${{ inputs.image_name }}:$image_tag"
dev_repo_ref="$repo_name:$dev_image_tag"
dev_image_ref="${{ inputs.image_name }}:$dev_image_tag"
echo "repo_name=$repo_name" >> $GITHUB_OUTPUT
echo "image_tag=$image_tag" >> $GITHUB_OUTPUT
echo "dev_image_tag=$dev_image_tag" >> $GITHUB_OUTPUT
echo "repo_ref=$repo_ref" >> $GITHUB_OUTPUT
echo "image_ref=$image_ref" >> $GITHUB_OUTPUT
echo "dev_repo_ref=$dev_repo_ref" >> $GITHUB_OUTPUT
echo "dev_image_ref=$dev_image_ref" >> $GITHUB_OUTPUT

0 comments on commit 719eaa9

Please sign in to comment.