Skip to content

add cronQueries=auto (#14) #8

add cronQueries=auto (#14)

add cronQueries=auto (#14) #8

Workflow file for this run

name: Docker Release
on:
push:
# Publish `v1.2.3` tags as releases.
tags:
- v*
env:
IMAGE_NAME: enoarkime
jobs:
# Push image to GitHub Packages.
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Log into GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push image to GitHub Container Registry
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
VERSION=$(echo $VERSION | sed -e 's/^v//')
docker image build -t $IMAGE_ID:$VERSION .
docker image build -t $IMAGE_ID:latest .
docker image push $IMAGE_ID:$VERSION
docker image push $IMAGE_ID:latest