Skip to content

Commit

Permalink
fixup! .github: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fjmolinas committed Apr 12, 2021
1 parent 0e5496d commit 0141a45
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Build and test pull request
runs-on: ubuntu-latest
env:
RIOT_BRANCH: 2020.10-branch
RIOT_BRANCH: '2020.10'

steps:
- name: checkout
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: RIOT-OS/RIOT
ref: ${{ env.RIOT_BRANCH }}
ref: ${{ env.RIOT_BRANCH }}-branch
path: RIOT

- name: Run gnu build test
Expand All @@ -125,5 +125,5 @@ jobs:
- name: Run static tests
run: |
docker run --rm -t -v $(pwd)/RIOT:/data/riotbuild \
-e CI_BASE_BRANCH=${{ env.RIOT_BRANCH }} ${{ secrets.DOCKERHUB_USERNAME }}/riotbuild:latest \
-e CI_BASE_BRANCH=${{ env.RIOT_BRANCH }}-branch ${{ secrets.DOCKERHUB_USERNAME }}/riotbuild:latest \
./dist/tools/ci/static_tests.sh
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Build and push images
runs-on: ubuntu-latest
env:
RIOT_BRANCH: 2020.10-branch
RIOT_BRANCH: '2021.01'

steps:
- name: checkout
Expand Down Expand Up @@ -40,7 +40,9 @@ jobs:
platforms: linux/amd64
pull: true
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/riotdocker-base:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/riotdocker-base:latest
${{ secrets.DOCKERHUB_USERNAME }}/riotdocker-base:${{ env.RIOT_BRANCH }}
cache-from: type=local,src=/tmp/.buildx-cache-base
cache-to: type=local,dest=/tmp/.buildx-cache-base-new

Expand All @@ -66,7 +68,9 @@ jobs:
platforms: linux/amd64
pull: true
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/static-test-tools:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/static-test-tools:latest
${{ secrets.DOCKERHUB_USERNAME }}/static-test-tools:${{ env.RIOT_BRANCH }}
build-args: |
DOCKERHUB_REGISTRY=${{ secrets.DOCKERHUB_USERNAME }}
cache-from: type=local,src=/tmp/.buildx-cache-static
Expand Down Expand Up @@ -94,7 +98,9 @@ jobs:
platforms: linux/amd64
pull: true
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/riotbuild:latest
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/riotbuild:latest
${{ secrets.DOCKERHUB_USERNAME }}/riotbuild:${{ env.RIOT_BRANCH }}
build-args: |
DOCKERHUB_REGISTRY=${{ secrets.DOCKERHUB_USERNAME }}
cache-from: type=local,src=/tmp/.buildx-cache-riotbuild
Expand Down

0 comments on commit 0141a45

Please sign in to comment.