Skip to content

Commit

Permalink
build test github
Browse files Browse the repository at this point in the history
  • Loading branch information
ZarTek-Creole committed Mar 19, 2023
1 parent 1531268 commit 6bd20a5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Build docker image

on: [push]

jobs:
build-action:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build action image
run: make docker-build
18 changes: 12 additions & 6 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
- uses: actions/checkout@v2
- name: run shellcheck
uses: sudo-bot/action-shellcheck@latest
with:
# https://github.com/koalaman/shellcheck#how-to-use
cli-args: "app/startup-sequence/shell/*.sh"
name: run shellcheck
on: [push]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: run shellcheck
uses: sudo-bot/action-shellcheck@latest
with:
cli-args: "--format=checkstyle --severity=info app/startup-sequence/shell/*.sh"
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.PHONY: update-tags docker-build

docker-build:
docker build . \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`

update-tags:
git checkout master
git tag -s -f -a -m "latest series" latest
git checkout -
git push origin refs/tags/latest -f

0 comments on commit 6bd20a5

Please sign in to comment.