Skip to content

Bump version: 4.0.0-rc18 → 4.0.0-rc19 #1474

Bump version: 4.0.0-rc18 → 4.0.0-rc19

Bump version: 4.0.0-rc18 → 4.0.0-rc19 #1474

Workflow file for this run

name: package
on:
push:
merge_group:
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up
run: |
docker --version
docker-compose --version
echo "${GITHUB_REF}"
- name: Start services
run: |
make services
- name: Build docker images
run: |
make cached-build
- name: Install development dependencies
run: make dev
- name: Check formatting
run: make format-check
- name: Run linter (ruff)
run: make lint
- name: Run tests
run: make test
- name: Push docker images (hash)
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')) && github.actor != 'dependabot[bot]'
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker tag ghcr.io/alephdata/ingest-file ghcr.io/alephdata/ingest-file:${GITHUB_SHA}
docker push ghcr.io/alephdata/ingest-file:${GITHUB_SHA}
docker tag ghcr.io/alephdata/ingest-file ghcr.io/alephdata/ingest-file:cache
docker push ghcr.io/alephdata/ingest-file:cache
- name: Push docker images for tags
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
export TAG=${GITHUB_REF/refs\/tags\//}
docker tag ghcr.io/alephdata/ingest-file ghcr.io/alephdata/ingest-file:${TAG};
docker push ghcr.io/alephdata/ingest-file:${TAG};
- name: Tag latest image
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/test-')
run: |
docker push ghcr.io/alephdata/ingest-file;