Update unstable.yml
This commit is contained in:
parent
f190db29b1
commit
5afb20db91
1 changed files with 21 additions and 16 deletions
37
.github/workflows/unstable.yml
vendored
37
.github/workflows/unstable.yml
vendored
|
@ -3,6 +3,10 @@ name: Publish Docker image Dotclear unstable
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: jcpd/docker-dotclear:test
|
||||||
|
DOTCLEAR_CANAL: unstable
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_to_docker_hub:
|
push_to_docker_hub:
|
||||||
name: Push Docker image to registry
|
name: Push Docker image to registry
|
||||||
|
@ -16,25 +20,26 @@ jobs:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Set up Docker Buildx
|
||||||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Extract metadata
|
||||||
id: push
|
id: meta
|
||||||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
sbom: true
|
||||||
push: true
|
push: true
|
||||||
tags: jcpd/docker-dotclear:test
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: docker-dotclear:test
|
build-args: CANAL=${{ env.DOTCLEAR }}
|
||||||
build-args: CANAL=unstable
|
|
||||||
|
|
||||||
- name: Generate artifact attestation
|
|
||||||
uses: actions/attest-build-provenance@v1
|
|
||||||
with:
|
|
||||||
subject-name: jcpd/docker-dotclear:test
|
|
||||||
subject-digest: ${{ steps.push.outputs.digest }}
|
|
||||||
push-to-registry: true
|
|
||||||
|
|
Loading…
Reference in a new issue