Skip to content

Commit

Permalink
remove cron ref
Browse files Browse the repository at this point in the history
  • Loading branch information
sfxworks committed May 16, 2024
1 parent eefb720 commit c178a85
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 48 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,47 @@ on:
- main

jobs:
build:
build-scancode-base:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Clone scancode-toolkit repository
run: git clone https://github.com/nexB/scancode-toolkit.git

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push scancode-toolkit Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: scancode-toolkit
file: scancode-toolkit/Dockerfile
push: true
tags: ghcr.io/redhatproductsecurity/licensescanner:scancode-base

build-wrapper:
needs: build-scancode-base
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -63,7 +103,7 @@ jobs:

test:
runs-on: ubuntu-latest
needs: build
needs: build-wrapper

steps:
- name: Checkout repository
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/daily_scancode_build.yml

This file was deleted.

0 comments on commit c178a85

Please sign in to comment.