Skip to content

Commit

Permalink
docker ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Jan 6, 2024
1 parent 0e9b569 commit d3312b9
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker

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

env:
TEST_TAG: call-fabric-client-beta

jobs:
build-and-test-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

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

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

- name: Build and push
uses: docker/build-push-action@v5
with:
push: false
load: true
tags: ${{ env.TEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Inspect
run: |
docker image inspect ${{ env.TEST_TAG }}
- name: Start
run: |
docker run -d --rm --name=call-fabric-client-beta --env SECRET_KEY_BASE=dummy ${{ env.TEST_TAG }}
- name: Logs
run: |
docker ps
docker logs call-fabric-client-beta

0 comments on commit d3312b9

Please sign in to comment.