chore: Update Dockerfile to use /src as volume and working directory #7
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: Publish Uclid Image | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lowercase the tag | |
run: | | |
echo "IMAGE_ROOT=${REGISTRY@L}/${IMAGE_NAME@L}" >> $GITHUB_ENV | |
- name: Build the Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: ${{ env.IMAGE_ROOT }}:${{ github.ref_name }}, ${{ env.IMAGE_ROOT }}:latest |