Skip to content

add certificates

add certificates #13

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
jobs:
publish-docker-images-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 3.8.6 ] # Define versions for matrix build https://git.bgbm.org/biocase/bps/-/releases
contents: read

Check failure on line 16 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Create and publish a Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 16, Col: 13): Unexpected value 'contents' .github/workflows/publish.yml (Line: 17, Col: 13): Unexpected value 'packages'
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: downcase IMAGE_NAME
run: |
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build \
--build-arg BIOCASE_VERSION=${{ matrix.version }} \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }} .
- name: Push Docker image
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}