Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Add rsync to ignore .gitignore files when populating working directory #27

Merged
merged 3 commits into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ task:
get_script: go get ./...
build_script: go build ./...
test_script: go test ./...


docker_builder:
name: Test Docker Build
edigaryev marked this conversation as resolved.
Show resolved Hide resolved
only_if: "changesInclude('Dockerfile')"
build_script: docker build .

task:
name: Build Binaries
only_if: $CIRRUS_PR != ''
Expand All @@ -26,7 +31,9 @@ task:
task:
name: Release
only_if: $CIRRUS_TAG != ''
depends_on: Test
depends_on:
- Test
- Test Docker Build
env:
GITHUB_TOKEN: ENCRYPTED[!98ace8259c6024da912c14d5a3c5c6aac186890a8d4819fad78f3e0c41a4e0cd3a2537dd6e91493952fb056fa434be7c!]
container:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ ADD . /tmp/cirrus-ci-agent/
RUN goreleaser build --snapshot

FROM alpine:latest

RUN apk add --no-cache rsync
COPY --from=builder /tmp/cirrus-ci-agent/dist/agent_linux_amd64/agent /bin/cirrus-ci-agent