@@ -0,0 +1,31 @@
|
||||
---
|
||||
name: Build and push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test_shellcheck:
|
||||
name: check and test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install shellcheck
|
||||
run: apt update && apt install -y shellcheck
|
||||
- name: test
|
||||
run: ./shellcheck.sh
|
||||
buildpush:
|
||||
name: build_and_push
|
||||
needs: [tests_shellcheck]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to docker
|
||||
run: mkdir -p $HOME/.docker && cp config.json $HOME/.docker/config.json
|
||||
- name: Install docker
|
||||
run: curl -fsSL https://get.docker.com | sh
|
||||
- name: Install parallel
|
||||
run: apt install parallel -y
|
||||
- name: Build docker container
|
||||
run: ./build-all.sh && exit 0
|
||||
Reference in New Issue
Block a user