From f03f166be3148076286e5f6f66a61f4225d917fb Mon Sep 17 00:00:00 2001 From: Evandro Pomatti Date: Mon, 11 Dec 2023 23:12:42 -0300 Subject: [PATCH] docker --- .github/workflows/docker-image.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..200671c --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,34 @@ +name: Docker Image CI + +on: + push: + paths: + - 'app/**' + workflow_dispatch: + +env: + REPOSITORY: azure-vm-cni-app:arm64 + +jobs: + + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./app + steps: + - uses: docker/setup-qemu-action@v3 + with: + platforms: 'arm64,arm' + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile.arm64v8 --tag $REPOSITORY + + - uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - run: | + docker tag $REPOSITORY epomatti/$REPOSITORY + docker push epomatti/$REPOSITORY