Skip to content

Commit

Permalink
Create PublishDocker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vncloudsco authored Mar 1, 2024
1 parent a746b53 commit 423d39f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/PublishDocker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 423d39f

Please sign in to comment.