Skip to content

Commit a1e7806

Browse files
chore: attempt to use github actions as ci/cd pipeline (#128)
1 parent f3ca287 commit a1e7806

File tree

5 files changed

+15
-55
lines changed

5 files changed

+15
-55
lines changed

.github/workflows/ci-cd.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,22 @@ on:
44
push:
55
workflow_dispatch:
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest
1013
steps:
11-
- run: echo "Hello world"
14+
- uses: actions/checkout@v4
15+
- uses: docker/setup-buildx-action@v3
16+
- run: docker-compose -f elastic-stack/docker-compose.yml build
17+
- run: docker-compose -f serilog/docker-compose.yml build
18+
19+
update_readme:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- run: ./scripts/update-readme.sh

.github/workflows/update-readme.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

build/build.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

build/update-readme.sh renamed to scripts/update-readme.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
# Don't update README on pull requests since secure AppVeyor variables aren't
5-
# provided in pull requests
6-
if [ "$APPVEYOR_PULL_REQUEST_TITLE" != "" ]
7-
then
8-
echo "Skip updating README in pull requests"
9-
exit
10-
fi
11-
12-
# Setup SSH
13-
echo "-----BEGIN RSA PRIVATE KEY-----" > ~/.ssh/id_rsa
14-
echo "${SSH_PRIVATE_KEY}" | tr " " "\n" >> ~/.ssh/id_rsa
15-
echo "-----END RSA PRIVATE KEY-----" >> ~/.ssh/id_rsa
16-
sudo chmod 600 ~/.ssh/id_rsa
17-
184
# Setup git
19-
git remote set-url origin git@github.com:FantasticFiasco/serilog-sinks-http-sample-elastic-stack.git
205
git config user.name FantasticFiasco
216
git config user.email mattias@kindb.org
22-
git checkout $APPVEYOR_REPO_BRANCH
237

248
# Update Elastic Stack version in README
259
DOCKERFILE_ELASTIC_VERSION=`grep -oP '\d+\.\d+\.\d+' ./elastic-stack/.env`

0 commit comments

Comments
 (0)