Skip to content

Commit

Permalink
github action fixes
Browse files Browse the repository at this point in the history
Fix tiiuae-coverity-scan-image action name
Updates and permissions fix for tiiuae-builder-images
  • Loading branch information
Jari Nippula committed Sep 13, 2023
1 parent e3d6b69 commit 4ae75a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/tiiuae-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,36 @@ on:
# Run only manually
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
hw-builder-image:
name: create docker builder base image
runs-on: ubuntu-latest
steps:
- name: Checkout px4-firmware
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: px4-firmware
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ghcr.io/tiiuae/px4-firmware-builder-base
tags: |
type=raw,value=latest
type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build builder base image and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./px4-firmware/packaging/Dockerfile.build_env_pre
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tiiuae-coverity-scan-image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tiiuae-builder-images
name: tiiuae-coverity-scan-image

on:
# Run only manually
Expand Down

0 comments on commit 4ae75a7

Please sign in to comment.