actions-hub / gcloud

GitHub Action for interacting with Google Cloud Platform (GCP)
https://github.com/marketplace/actions/google-cloud-platform-gcp-cli-gcloud
MIT License
232 stars 27 forks source link

gsutil for windows containers #9

Closed 0xvishal closed 4 years ago

0xvishal commented 4 years ago

I am getting an error if using windows containers in place of ubuntu. So please assist me in how can I use gsutil for windows containers.

exelban commented 4 years ago

@0xvishal can you share the error?

0xvishal commented 4 years ago

Screenshot from 2020-03-20 17-52-45

0xvishal commented 4 years ago

name: Node.js CI

on: [push]

jobs: build:

runs-on: windows-latest

strategy:
  matrix:
    node-version: [12.x]

steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node-version }}
  uses: actions/setup-node@master
  with:
    node-version: ${{ matrix.node-version }}
#- run: npm install
#- run: npm run make
#- run: ls out/make/squirrel.windows/x64
- run: ls

- name: Deploy to Bucket
  uses: actions-hub/gcloud@master
  env:
        PROJECT_ID: dcdn
        APPLICATION_CREDENTIALS: ${{ secrets.GCP_APPLICATION_CREDENTIALS }}
        CLI: gsutil
  with: 
       args: cp package.json gs://cacher
exelban commented 4 years ago

@0xvishal Docker Action is only supported on Linux only. https://help.github.com/en/actions/building-actions/about-actions#types-of-actions.

So it's not possible to use this action on non-linux OS.