Skip to content

Commit

Permalink
make: act-automate: act-docker-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed May 5, 2023
1 parent bc07501 commit de288d7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/automate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.9.1
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: make alpine-build
run: |
make alpine-build
make
- uses: actions/checkout@v2
- name: make ubuntu-build
run: |
make ubuntu-build
make
10 changes: 4 additions & 6 deletions .github/workflows/docker.shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,26 @@ jobs:
steps:
## REF: https://githubmemory.com/repo/Gisleburt/cancel-workflow-action
- uses: styfle/cancel-workflow-action@0.8.0
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: Make
run: |
make alpine-build
make shell
#make build-debian
make
ulatest-host:
runs-on: ubuntu-latest
steps:
## REF: https://githubmemory.com/repo/Gisleburt/cancel-workflow-action
- uses: styfle/cancel-workflow-action@0.8.0
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: Make
run: |
make alpine-build
make shell
#make build-debian
make
1 change: 1 addition & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -385,3 +385,4 @@ clean:
&& echo 'Image(s) for "$(PROJECT_NAME):$(HOST_USER)" removed.' \
|| echo 'Image(s) for "$(PROJECT_NAME):$(HOST_USER)" already removed.'

-include act.mk
4 changes: 4 additions & 0 deletions act.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
act-automate-alpine:docker-start## run act in .github
@export $(cat ~/GH_TOKEN.txt) && act -vbr -W .github/workflows/automate.yml
act-docker-shell:docker-start## run act in .github
@export $(cat ~/GH_TOKEN.txt) && act -vbr -W .github/workflows/docker.shell.yml

0 comments on commit de288d7

Please sign in to comment.