Skip to content

ci: data - c89a90ecd28d26e99cc541d05b28956a7dd1e365 #172

ci: data - c89a90ecd28d26e99cc541d05b28956a7dd1e365

ci: data - c89a90ecd28d26e99cc541d05b28956a7dd1e365 #172

Workflow file for this run

name: dev
on:
push:
branches: [ main ]
jobs:
build-mariadb:
if: "!contains(github.event.head_commit.message, '#release')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PA_TOKEN }}
submodules: true
- name: Docker login
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin
- uses: benjlevesque/[email protected]
id: short-sha
- name: Set build tag
run: echo "DOCKER_IMAGE_TAG=dev-${{ steps.short-sha.outputs.sha }}-$(date +%s)" >> $GITHUB_ENV
- name: Build container
run: docker build -f docker/mariadb/Dockerfile -t ghcr.io/gurbaninow/database:${{ env.DOCKER_IMAGE_TAG }} .
- name: Publish container
run: |
docker push ghcr.io/gurbaninow/database:${{ env.DOCKER_IMAGE_TAG }}
docker tag ghcr.io/gurbaninow/database:${{ env.DOCKER_IMAGE_TAG }} ghcr.io/gurbaninow/database:dev
docker push ghcr.io/gurbaninow/database:dev
build-sqlite:
if: "!contains(github.event.head_commit.message, '#release')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PA_TOKEN }}
submodules: true
- uses: actions/setup-node@v3
- run: npm ci
- name: Build database
run: npm run build-sqlite