docker-dotclear/.github/workflows/unstable.yml
Jean-Christian Paul Denis 5afb20db91
Update unstable.yml
2024-11-13 11:02:42 +01:00

45 lines
1 KiB
YAML

name: Publish Docker image Dotclear unstable
on:
push:
env:
IMAGE_NAME: jcpd/docker-dotclear:test
DOTCLEAR_CANAL: unstable
jobs:
push_to_docker_hub:
name: Push Docker image to registry
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
sbom: true
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: CANAL=${{ env.DOTCLEAR }}