forked from corazawaf/coraza-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 1.11 KB
/
PublishDocker.yml
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
35
36
name: Docker Build and Push
on:
push:
branches:
- main
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build and Push Docker Image for coraza-nginx
run: |
docker buildx create --use
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
docker buildx build --platform linux/amd64,linux/arm64 -t vouu/coraza-nginx . --push
- name: Build and Push Docker Image for coraza-nginx
run: |
docker buildx create --use
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
docker buildx build --platform linux/amd64,linux/arm64 -t vouu/coraza-nginx:01-03-2024 . --push