Bump python version #51
Workflow file for this run
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: Expression Classification Branch Build | |
on: | |
push: | |
branches-ignore: | |
- 'master' | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
docker_build_branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Branch name | |
run: echo running on branch ${GITHUB_REF##*/} | |
- name: Sanitize Repo Name for Tagging | |
run: echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]' | (read; echo REPO_LOWER=$REPLY) >> $GITHUB_ENV | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/${{ env.REPO_LOWER }} | |
tags: | | |
type=ref,event=branch,prefix=branch- | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: echo "ghcr.io/${{ env.REPO_LOWER }}:branch-${GITHUB_REF##*/}" | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: | | |
org.opencontainers.image.source=https://github.com/${{ github.repository }} |