yeah. ๐ฅณ
Just by the power of fediverse.
-๐ซท๐๐_
yeah. ๐ฅณ
Just by the power of fediverse.
-๐ซท๐๐_
@jwildeboer @Codeberg hmmm... May i suggest this version, but with the secrets declared? https://codeberg.org/jwildeboer/jwildeboersource/src/commit/bac77e219b9cce4925bdd7311e7b56f32e61b8ac/.woodpecker.yml
$${VAR_NAME} looks like the docs. But I'm missing the
secrets: [ secret1, secret2]
But i might be wrong, because i followed your files on my mobile phone, and missed something.
๐ค๐๐ค
@jwildeboer @Codeberg the update would be the use of env vars in commands instead of referencing the secrets directly. That could explain the warning message that secrets are not allowed.
@jwildeboer @Codeberg my guess, because its yaml:
secrets: [token1, token2]
environment:
TOKEN_1:
from-secret: token1
TOKEN_2:
from-secret: token2
commands:
- echo ${{TOKEN_1}}
- echo ${{TOKEN_2}}
That's how i understand the docs
@jwildeboer @Codeberg found the warning. It looks like you need to paas the secrets into a setting or environment variable before using it in a command. Actually you use a declared secret. Maybe put
environment:
CBTOKEN_ENV:
from-secret: cbtoken
between your line 8 and 9
and reference in command like ${{CBTOKEN_ENV}}.
BTW:
The documentation is age-insensitive ๐.
It's just not clear. ๐
@jwildeboer @Codeberg maybe escape them when you use them? If they are preprocessed then :
echo $${CBTOKEN}
Should be resolved to :
echo tokenvalue
Your missing the {{}}?
Marco ๐ฆ :verified: :grumpycat:
*325ppm โซ๐ต๐ตI ๐ bits since 8080๐๐#dotnet :dotnet: #AzureAD #B2C #PolyglotNotebook #csharp :csharp:
GNU social JP is a social network, courtesy of GNU social JP็ฎก็ไบบ. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.