okteto / actions

Enable GitHub developers to deploy to Okteto using GitHub Actions
Apache License 2.0
18 stars 2 forks source link

Use optional build-args (closes #9) #10

Closed tullo closed 4 years ago

tullo commented 4 years ago

Signed-off-by: Andreas Amstutz andreasamstutz@gmail.com

Ths PR adds optional build-args to okteto build

Test config for the action step:

    - name: Build
      uses: okteto/actions/build@v1
      env:
        BUILD_DATE: ${{ steps.date.outputs.date }}
        PACKAGE_NAME: sales-api
        VCS_REF: ${{ github.sha }}      
      with:
        file: dockerfile.sales-api
        token: ${{ secrets.OKTETO_TOKEN }}
        tag: registry.cloud.okteto.net/${{ secrets.OKTETO_NS }}/sales-api-amd64:${{ github.sha }}
        buildargs: PACKAGE_NAME,VCS_REF,BUILD_DATE