Update docker-compose app version0.3.175 (#212) #251
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: Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
# permissions are needed if pushing to ghcr.io | |
permissions: | |
packages: write | |
jobs: | |
install: | |
name: Test installation | |
runs-on: ubuntu-latest-m | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Desktop | |
id: start_desktop | |
uses: docker/desktop-action/[email protected] | |
with: | |
docker-desktop-build-url: "https://desktop.docker.com/linux/main/amd64/160616/docker-desktop-amd64.deb" | |
- name: Edit Docker Desktop setting file | |
shell: bash | |
run: | | |
jq '.onlyMarketplaceExtensions = false' ~/.docker/desktop/settings.json > tmp.$$.json && mv tmp.$$.json ~/.docker/desktop/settings.json | |
- name: Validate metadata | |
run: docker extension validate ./metadata.json | |
- name: Build extension | |
run: docker build -t digma-docker-extension . | |
- name: Install extension | |
run: docker extension install digma-docker-extension -f | |
build: | |
name: Build | |
needs: [install] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# https://github.com/docker/setup-qemu-action | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
# https://github.com/docker/setup-buildx-action | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build multi-platform image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: false |