updated deps #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build leviathan images | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - dev | |
| - master | |
| paths: | |
| - '.github/**' | |
| - 'src/**' | |
| pull_request: | |
| branches: | |
| - dev | |
| - master | |
| paths: | |
| - '.github/**' | |
| - 'src/**' | |
| jobs: | |
| build-docker: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write # to be able to publish docker images | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| # docker image build | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GHCR registry | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: build and push leviathan | |
| run: | | |
| REGISTRY="ghcr.io/${{ github.repository }}" | |
| docker build \ | |
| --build-arg VERSION=$(git describe --tags --always 2>/dev/null || echo "dev") \ | |
| --build-arg COMMIT_INFO=$(git rev-parse HEAD 2>/dev/null || echo "unknown") \ | |
| --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ | |
| --build-arg BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "unknown") \ | |
| -t ${REGISTRY}:dev . | |
| docker push ${REGISTRY}:dev |