Skip to content

checling data lfs

checling data lfs #64

Workflow file for this run

name: Docker
on:
push:
branches: [ "master" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-test-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# For git tags like v1.2.3, create a Docker tag 1.2.3
type=semver,pattern={{version}}
# For all other events (pushes to master, PRs)
type=sha,prefix=,format=short
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: .
# Only push if the ref starts with 'refs/tags/'
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
load: true
- name: Run 'runff' Test Script on the built image
run: |
TEST_TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n 1)
echo "Testing image with tag: $TEST_TAG"
docker run --rm $TEST_TAG bash -c "cd tests/runff && bash ff-run.bash"