Skip to content

Ubuntu 22.04

Ubuntu 22.04 #1133

name: Ubuntu 22.04
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
# every 12 hours
- cron: '0 */12 * * *'
jobs:
build-ubuntu-22_04:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Build image
working-directory: ubuntu
run: ./build.sh
- name: Test image
run: ./ci/smoke_test.sh
- name: Push image to registry
if: ${{ github.repository == 'antoninbas/p4c-lite-docker' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push antoninbas/p4c-lite