Ubuntu 22.04 #1144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |