Skip to content

add lab6 (in progress) #19

add lab6 (in progress)

add lab6 (in progress) #19

Workflow file for this run

name: Docker Build and Test
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker Environment
uses: docker/setup-buildx-action@v1
- name: Build Docker image
run: docker build . -t meloian/modern_prog:latest
- name: Log in to Docker Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Registry
run: docker push meloian/modern_prog:latest
- name: Pull and Run Docker container
run: docker run --rm meloian/modern_prog:latest
- name: Execute Tests
run: docker run --rm meloian/modern_prog:latest
- name: List files in /app directory
run: docker run --rm meloian/modern_prog:latest ls -R /app