Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
epomatti committed Dec 12, 2023
1 parent c5ac9f0 commit f03f166
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f03f166

Please sign in to comment.