-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (44 loc) · 1.17 KB
/
update-docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Create docker image
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths:
- Dockerfile
- .github/workflows/update-docker-image.yml
- container_digest.sh
- docker_build.sh
- docker_build_and_push.sh
- docker_push.sh
- entrypoint.sh
- update_readme.sh
- LICENSE.md
- README.md
- bin/*
workflow_dispatch:
jobs:
docker-build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v3
- name: Build Docker Images
uses: philips-software/docker-ci-scripts@main
with:
image-name: docker-ci-scripts
tags: ${{ github.ref_name }}
push-branches: main ${{ github.ref_name }}
slsa-provenance: true
sign: true
sbom: true
env:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REGISTRY_URL: ghcr.io/philips-software
GITHUB_ORGANIZATION: philips-software
KEYLESS: true