Merge pull request #4 from neuro-inc/ENG-446-bugfix #35
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
name: CI | |
on: | |
push: | |
branches: [apolo] | |
tags: ["v*"] | |
pull_request: | |
branches: [apolo] | |
jobs: | |
release: | |
name: Release image | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- name: Checkout commit | |
uses: actions/checkout@v4 | |
- name: Login to ghcr.io | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Build Docker image | |
run: make build-image | |
- name: Push image | |
run: | | |
export IMAGE_TAG=${GITHUB_REF#refs/tags/v} | |
make push-image | |
export IMAGE_TAG=latest | |
make push-image | |
export IMAGE_TAG=$(cat version.txt) | |
make push-image |