-
Notifications
You must be signed in to change notification settings - Fork 32
34 lines (32 loc) · 1 KB
/
docker-publish-x86.yml
File metadata and controls
34 lines (32 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Docker
on:
push:
branches: [ main ]
repository_dispatch:
types: [ new-commit-from-SVF ]
jobs:
docker-image:
if: github.repository == 'SVF-tools/Software-Security-Analysis'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWD }}
- name: Set up QEMU (Support ARM64)
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push x86 and ARM64 images
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: |
${{secrets.DOCKER_USER}}/software-security-analysis:latest
${{secrets.DOCKER_USER}}/software-security-analysis:latest-arm64