Skip to content

Update uploadFile.yml #3

Update uploadFile.yml

Update uploadFile.yml #3

Workflow file for this run

name: Build Docker image
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-with-docker:
runs-on: ubuntu-20.04
steps:
- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Remove unnecessary files
run: |
sudo ls -l /usr/share/dotnet
sudo ls -l /var/lib/docker/tmp
sudo ls -l "$AGENT_TOOLSDIRECTORY"
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: .
tags: my_tag:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run pytest
run: docker run my_tag pytest