Skip to content

fix incorrect locating of vesta application #26

fix incorrect locating of vesta application

fix incorrect locating of vesta application #26

Workflow file for this run

name: Build and publish docker images
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
env:
REGISTRY: ghcr.io
IMAGE_TAG: main
NORTH_TOOL_DIR: src/nomad_north_vesta/north_tools/vesta
permissions:
packages: write
contents: read
attestations: write
id-token: write
jobs:
build:
name: vesta image
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.meta.outputs.tags }} # list
labels: ${{ steps.meta.outputs.labels }} # list
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
fetch-depth: 0
show-progress: true
submodules: true
- name: Log in to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
# set latest tag for main branch and tags
# https://github.com/docker/metadata-action?tab=readme-ov-file#image-name-and-tag-sanitization
tags: |
type=ref,event=tag
type=ref,event=pr,prefix=pr-
type=raw,value=main,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
flavor: |
latest=auto
# https://docs.docker.com/build/ci/github-actions/share-image-jobs/
# https://github.com/docker/build-push-action
- name: Build and publish vesta image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.NORTH_TOOL_DIR }}/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}