lowercase for tags #2
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: Create and publish a Docker image | ||
on: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository | toLowerCase}} | ||
Check failure on line 9 in .github/workflows/publish.yml
|
||
jobs: | ||
publish-docker-images-matrix: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: [ 3.8.5, 3.8.6 ] # Define versions for matrix build http://ww2.biocase.org/svn/bps2/tags/ | ||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- 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 }} |