-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#141): migrate circleci config to github actions
- Loading branch information
1 parent
5e820dc
commit da16a0f
Showing
15 changed files
with
76 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-P ubuntu-latest=catthehacker/ubuntu:act-latest | ||
-P ubuntu-20.04=catthehacker/ubuntu:act-20.04 | ||
-P ubuntu-18.04=catthehacker/ubuntu:act-18.04 | ||
ubuntu-16.04=catthehacker/ubuntu:act-16.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
container: "koalaman/shellcheck-alpine:latest" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run Shellcheck | ||
# TODO(#35): fix bogus shellcheck errors in Github Actions | ||
run: | | ||
find . -type f -name '*.sh' | xargs shellcheck --external-sources --exclude=SC1091,SC2086 | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
distro: [alpine, arch] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Generate image tags | ||
id: generate_image_tags | ||
run: | | ||
IMAGE_TAG_BASE="meatwallace/meatbox-${{ matrix.distro }}" | ||
if [[ "${{ github.ref}}" = refs/heads/master ]]; then | ||
TAGS="${IMAGE_TAG_BASE}:latest," | ||
fi | ||
TAGS="$TAGS${IMAGE_TAG_BASE}:${{ github.sha }}" | ||
echo "::set-output name=tags::${TAGS}" | ||
- name: Log in to Dockerhub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build container image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: ${{ github.event_name != 'pull_request' }} | ||
file: ./scripts/${{ matrix.distro }}/Dockerfile | ||
build-args: | | ||
MEATBOX_USER: meatwallace | ||
MEATBOX_PASSWORD: meatword | ||
MEATBOX_CHECKOUT_SHA1: ${{ github.sha }} | ||
tags: ${{ steps.generate_image_tags.outputs.tags }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,7 @@ veonim | |
visual-studio-code-insiders | ||
|
||
# dev | ||
act | ||
google-cloud-sdk | ||
watchman | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters