mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-13 17:40:19 -05:00
ci: Package action automatically on release branch (#15)
This commit is contained in:
parent
abde1147dd
commit
917745b929
9 changed files with 161 additions and 1623 deletions
16
.github/workflows/file.yml
vendored
16
.github/workflows/file.yml
vendored
|
|
@ -3,11 +3,20 @@ name: Test File Extraction
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
action:
|
||||
uses: ./.github/workflows/build_action.yaml
|
||||
root-file:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- action
|
||||
name: Extract Example File From Root of Built Image
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Load action build from cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: build-${{ github.sha }}
|
||||
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
||||
- uses: ./
|
||||
id: extract
|
||||
|
|
@ -17,9 +26,16 @@ jobs:
|
|||
- run: test -e ${{ steps.extract.outputs.destination }}/001.txt || exit 1
|
||||
nested-file:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- action
|
||||
name: Extract Nexted Example File From Built Image
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Load action build from cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: build-${{ github.sha }}
|
||||
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
||||
- uses: ./
|
||||
id: extract
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue