improved ui #6
This file contains 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
# Builds leviathan images on dev | |
name: Build develop images | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- '.github/**' | |
- 'src/**' | |
pull_request: | |
branches: | |
- dev | |
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 }}" | |
VERSION="${{ steps.tagName.outputs.tag }}" | |
docker build . -t ${REGISTRY}:dev | |
docker push ${REGISTRY}:dev |