Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Jul 9, 2021
1 parent 2623c6e commit c27a8ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
26 changes: 14 additions & 12 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ steps:
from_secret: DOCKER_LOGIN
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
GITHUB_TOKEN:
from_secret: GITHUB_KEY
commands:
- apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
- curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Expand All @@ -69,17 +71,17 @@ steps:
- export PATH="$(go env GOPATH)/bin:$PATH"
- RELEASE_TAG=$DRONE_TAG
- make -j4 BUILD_IN_CONTAINER=false RELEASE_BUILD=true RELEASE_TAG=$RELEASE_TAG publish
- name: publish
image: plugins/github-release
environment:
GITHUB_KEY:
from_secret: GITHUB_KEY
settings:
api_key: $GITHUB_KEY
files: /drone/src/dist/*
draft: true
when:
event: tag
# - name: publish
# image: plugins/github-release
# environment:
# GITHUB_KEY:
# from_secret: GITHUB_KEY
# settings:
# api_key: $GITHUB_KEY
# files: /drone/src/dist/*
# draft: true
# when:
# event: tag

volumes:
- name: docker
Expand Down Expand Up @@ -122,6 +124,6 @@ volumes:
path: /var/run/docker.sock
---
kind: signature
hmac: 53a2c096a9477d060cefdd7a867f7b3a25ef9ae9149996d7b3065f4776a3f5ee
hmac: c5433753ba699c6e9472f59cfc9346c61387951408edd05372d6396557ac2c54

...
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ packaging/centos-systemd/.uptodate: $(wildcard packaging/centos-systemd/*)
dist-packages: dist-packages-amd64 dist-packages-arm64 dist-packages-armv6 dist-packages-armv7

ifeq ($(BUILD_IN_CONTAINER), true)
@echo !!! Building in container

container_make = docker run --rm \
-v $(shell pwd):/src/agent:delegated \
Expand Down Expand Up @@ -371,4 +370,5 @@ clean-dist:
rm -rf dist
.PHONY: clean

publish: dist
publish: dist
./tools/release

0 comments on commit c27a8ff

Please sign in to comment.