Skip to content

Commit

Permalink
update CI variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Feb 22, 2021
1 parent ea7f7a3 commit 77dadb2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -12,12 +12,20 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build Push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
shell: bash
run: |
docker run --rm --privileged -v $(pwd):/darkroom \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(which docker):$(which docker) -w /darkroom \
-e GITHUB_TOKEN \
-e DOCKER_USERNAME \
-e DOCKER_PASSWORD \
ajatprabha/ci-goreleaser \
/bin/bash -c "echo ${{ secrets.DOCKER_PASSWORD }} | docker login docker.io --username ${{ secrets.DOCKER_USERNAME }} --password-stdin && GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} goreleaser release --skip-validate --rm-dist"
/bin/bash -c "echo $DOCKER_PASSWORD | docker login docker.io --username $DOCKER_USERNAME --password-stdin && goreleaser release --skip-validate --rm-dist"
release-docs:
name: Publish GH Pages
runs-on: ubuntu-latest
Expand All @@ -29,10 +37,11 @@ jobs:
- name: Add key to allow access to repository
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
GH_PAGES_DEPLOY: ${{ secrets.CI_DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
echo "$GH_PAGES_DEPLOY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
cat <<EOT >> ~/.ssh/config
Host github.com
Expand Down

0 comments on commit 77dadb2

Please sign in to comment.