diff --git a/.github/workflows/build-and-push-edge.yaml b/.github/workflows/build-and-push-edge.yaml new file mode 100644 index 0000000..2eedd46 --- /dev/null +++ b/.github/workflows/build-and-push-edge.yaml @@ -0,0 +1,45 @@ +name: Build and push edge tag + +on: + push: + branches: + - 'main' + paths-ignore: + - 'docs/**' + - 'helm/**' + - 'assets/**' + - '**.md' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: parseable/penguin + + - name: Build and push + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/penguin:edge + platforms: linux/amd64,linux/arm64