Skip to content

Commit

Permalink
Test docker build in CI (#19)
Browse files Browse the repository at this point in the history
* Test docker build in CI

* Build app container in CI too
  • Loading branch information
JoshuaC215 authored Sep 2, 2024
1 parent 1cec789 commit d29c3b3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy container app to Azure Web App - agent-service
name: Build and deploy agent-service to Azure Web App

on:
push:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Docker

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_call:

permissions:
contents: read

jobs:
docker-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Build service image
uses: docker/build-push-action@v3
with:
context: .
push: false
tags: agent-service-toolkit.service:${{ github.sha }}
file: docker/Dockerfile.service

- name: Build app image
uses: docker/build-push-action@v3
with:
context: .
push: false
tags: agent-service-toolkit.app:${{ github.sha }}
file: docker/Dockerfile.app
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python lint and test

on:
Expand Down

0 comments on commit d29c3b3

Please sign in to comment.