Merge pull request #776 from swaschkut/main #65
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: ARM - Docker Image CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
#runs-on: ubuntu-20.04 | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- | |
name: Build and push pan-os-php-arm | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: docker/Dockerfile-main_arm64v8 | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pan-os-php-arm:${{ secrets.DOCKER_HUB_TAG }} | |
- | |
name: Build and push pan-os-php-cli-arm | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: docker/Dockerfile-php_arm64v8 | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pan-os-php-cli-arm:${{ secrets.DOCKER_HUB_TAG }} | |
- | |
name: Build and push pan-os-php-api-arm | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: docker/Dockerfile-API_arm64v8 | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pan-os-php-api-arm:${{ secrets.DOCKER_HUB_TAG }} |