chore(deps): Bump pymdown-extensions from 10.10.1 to 10.11.1 #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Container | |
on: | |
push: | |
branches: | |
- main | |
env: | |
REGISTRY_DOMAIN: ${{ secrets.REGISTRY_DOMAIN }} | |
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} | |
CONTAINER_IMAGE: ${{ secrets.REGISTRY_DOMAIN }}/docs/environment | |
TAG: main | |
jobs: | |
build: | |
name: Build and push container image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Login into container registry | |
uses: docker/[email protected] | |
with: | |
registry: ${{ secrets.REGISTRY_DOMAIN }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Get user environment | |
run: | | |
echo "USER_ID=$(id -u)" >> $GITHUB_ENV | |
echo "GROUP_ID=$(id -g)" >> $GITHUB_ENV | |
- name: Build container image and push it to registry | |
uses: docker/[email protected] | |
id: build-and-push | |
with: | |
context: . | |
file: Dockerfile | |
build-args: | | |
USER_ID=${{ env.USER_ID }} | |
GROUP_ID=${{ env.GROUP_ID }} | |
pull: true | |
push: true | |
tags: ${{ env.CONTAINER_IMAGE }}:${{ env.TAG }} | |
- name: Install Cosign | |
uses: sigstore/[email protected] | |
- name: Sign container image | |
env: | |
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} | |
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | |
DIGEST: ${{ steps.build-and-push.outputs.digest }} | |
run: > | |
cosign | |
sign | |
--yes | |
--key env://COSIGN_PRIVATE_KEY | |
--tlog-upload=false | |
"${CONTAINER_IMAGE}@${DIGEST}" |