mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
docs: how to push snap packages
This commit is contained in:
parent
6310b8c12d
commit
94183d4f49
@ -42,6 +42,12 @@ after_success:
|
||||
# docker login is required if you want to push docker images.
|
||||
# DOCKER_PASSWORD should be a secret in your .travis.yml configuration.
|
||||
- test -n "$TRAVIS_TAG" && docker login -u=myuser -p="$DOCKER_PASSWORD"
|
||||
# snapcraft login is required if you want to push snapcraft packages to the
|
||||
# store.
|
||||
# You'll need to run `snapcraft export-login snap.login` and
|
||||
# `travis encrypt-file snap.login --add` to add the key to the travis
|
||||
# environment.
|
||||
- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
|
||||
|
||||
# calls goreleaser
|
||||
deploy:
|
||||
@ -117,9 +123,9 @@ pipeline:
|
||||
## Google CloudBuild
|
||||
|
||||
CloudBuild works off a different clone than your github repo: it seems that
|
||||
your changes are pulled to a repo like
|
||||
your changes are pulled to a repo like
|
||||
source.developers.google.com/p/YourProjectId/r/github-YourGithubUser-YourGithubRepo, and that's what
|
||||
you're building off.
|
||||
you're building off.
|
||||
|
||||
This repo has the wrong name, so to prevent Goreleaser from publishing to
|
||||
the wrong github repo, put in the your .goreleaser.yml file's release section:
|
||||
@ -157,19 +163,19 @@ steps:
|
||||
~ - name: gcr.io/cloud-builders/go
|
||||
~ env: ['PROJECT_ROOT=github.com/YourGithubUser/YourGithubRepo']
|
||||
~_ args: ['env']
|
||||
|
||||
|
||||
~ # Create github release.
|
||||
~ - name: goreleaser/goreleaser
|
||||
~ entrypoint: /bin/sh
|
||||
~ dir: gopath/src/github.com
|
||||
~ env: ['GOPATH=/workspace/gopath']
|
||||
~ args: ['-c', 'cd YourGithubUser/YourGithubRepo && git tag $TAG_NAME && /goreleaser' ]
|
||||
~ args: ['-c', 'cd YourGithubUser/YourGithubRepo && git tag $TAG_NAME && /goreleaser' ]
|
||||
~_ secretEnv: ['GITHUB_TOKEN']
|
||||
|
||||
|
||||
secrets:
|
||||
~ - kmsKeyName: projects/YourProjectId/locations/global/keyRings/YourKeyRing/cryptoKeys/YourKey
|
||||
~ secretEnv:
|
||||
~ GITHUB_TOKEN: |
|
||||
~ GITHUB_TOKEN: |
|
||||
~ ICAgICAgICBDaVFBZUhVdUVoRUtBdmZJSGxVWnJDZ0hOU2NtMG1ES0k4WjF3L04zT3pEazhRbDZr
|
||||
~ QVVTVVFEM3dVYXU3cVJjK0g3T25UVW82YjJaCiAgICAgICAgREtBMWVNS0hOZzcyOUtmSGoyWk1x
|
||||
~_ ICAgICAgIEgwYndIaGUxR1E9PQo=
|
||||
|
Loading…
x
Reference in New Issue
Block a user