Skip to content

chore: Update publish_image workflow to include checkout step #2

chore: Update publish_image workflow to include checkout step

chore: Update publish_image workflow to include checkout step #2

Workflow file for this run

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: Build the Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ github.ref_name }}, latest
github-token: ${{ secrets.GITHUB_TOKEN }}