Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Sep 9, 2024
1 parent 0941eed commit e2da210
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-unit-tests-riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
cd ~/chipStar
git fetch origin
git checkout ${{ github.event.pull_request.head.sha }}
./scripts/unit_tests.sh release llvm-18
bash -x ./scripts/unit_tests.sh release llvm-18
EOF
shell: bash
72 changes: 36 additions & 36 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: Docker Build and Publish
# name: Docker Build and Publish

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]

jobs:
docker:
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v3
# jobs:
# docker:
# runs-on: [self-hosted, Linux, X64]
# steps:
# - uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to DockerHub
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/DockerfileLatest
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
tags: pveleskopglc/chipstar:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./docker/DockerfileLatest
# push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# tags: pveleskopglc/chipstar:latest
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache

cleanup:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [docker]
runs-on: [self-hosted, Linux, X64]
steps:
- name: Clean up old Docker images
run: |
docker image prune -af
# cleanup:
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# needs: [docker]
# runs-on: [self-hosted, Linux, X64]
# steps:
# - name: Clean up old Docker images
# run: |
# docker image prune -af

0 comments on commit e2da210

Please sign in to comment.