Skip to content

Commit

Permalink
Temporarily disable builds
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscientist committed Oct 17, 2023
1 parent 1b51d88 commit f0cb7e1
Showing 1 changed file with 34 additions and 32 deletions.
66 changes: 34 additions & 32 deletions .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,41 @@ jobs:
outputs:
imagename: ${{ steps.image.name }}
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
# - name: 'Checkout GitHub Action'
# uses: actions/checkout@main
# - name: 'Login to GitHub Container Registry'
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{github.actor}}
# password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build API image'
id: image
run: |
docker build backend/ \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,} \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,}
docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
# docker build backend/ \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,} \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,}
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
echo "name=ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,}" >> $GITHUB_OUTPUT
build-ui:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build UI image'
run: |
docker build frontend/ \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,} \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,}
docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
# build-ui:
# runs-on: ubuntu-latest
# steps:
# - name: 'Checkout GitHub Action'
# uses: actions/checkout@main
# - name: 'Login to GitHub Container Registry'
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{github.actor}}
# password: ${{secrets.GITHUB_TOKEN}}
# - name: 'Build UI image'
# run: |
# docker build frontend/ \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,} \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,}
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
test:
needs: build-api
runs-on: ubuntu-latest
Expand All @@ -63,7 +63,9 @@ jobs:
run: |
pip install -r backend/requirements_test.txt
- name: Test
run: pytest /opt/aimaas/tests
run: |
find /opt -ls
pytest /opt/aimaas/tests/
env:
PG_USER: aimaas
PG_PASSWORD: password
Expand Down

0 comments on commit f0cb7e1

Please sign in to comment.