Skip to content

Release 2.7.1

Release 2.7.1 #74

name: publish basic container
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: set lower case owner name
run: |
echo "REPOSITORY_LC=${REPOSITORY,,}" >>${GITHUB_ENV}
env:
REPOSITORY: '${{ github.repository }}'
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
build-args: GITHUB_TOKEN=${{ secrets.USER_TOKEN_GITHUB }}
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ env.REPOSITORY_LC }}:latest
ghcr.io/${{ env.REPOSITORY_LC }}:${{ github.ref_name }}