Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration test fixes #24

Merged
merged 2 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/docker-push-ghcr-use-host-ovs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: docker-push-ghcr-use-host-ovs

on:
push:
branches: [main]
workflow_run:
types:
- completed
workflows:
- 'automerge'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2

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

- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: metaci
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository_owner }}/ci/${{ github.event.repository.name }}-use-host-ovs
tags: |
type=ref,event=pr
type=sha,prefix=
- name: "Build and push for Dockerfile.use-host-ovs"
uses: docker/build-push-action@v2
with:
file: Dockerfile.use-host-ovs
context: .
push: true
tags: ${{ steps.metaci.outputs.tags }}
8 changes: 0 additions & 8 deletions .github/workflows/docker-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,3 @@ jobs:
context: .
push: true
tags: ${{ steps.metaci.outputs.tags }}

- name: "Build and push for Dockerfile.use-host-ovs"
uses: docker/build-push-action@v2
with:
file: Dockerfile.use-host-ovs
context: .
push: true
tags: ${{ steps.metaci.outputs.tags }}
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ RUN /usr/bin/ovsdb-tool create /etc/openvswitch/conf.db
RUN mkdir -pv /var/run/openvswitch/

# Add configuration files
ADD build/run_supervisord.sh /bin/run_supervisord.sh
ADD build/supervisord.conf /etc/supervisord.conf
ADD build/configure-ovs.sh /usr/share/openvswitch/
RUN chmod 755 /usr/share/openvswitch/configure-ovs.sh
RUN chmod +x /bin/run_supervisord.sh

# When container starts, run_supervisord.sh is executed
ENTRYPOINT ["/bin/run_supervisord.sh"]
# When container starts, run supervisord process
ENTRYPOINT ["/usr/bin/supervisord"]
3 changes: 0 additions & 3 deletions build/run_supervisord.sh

This file was deleted.