Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity authored Feb 27, 2024
1 parent 16cfd84 commit 3cdb2b7
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Docker Image CI

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/s390x,linux/ppc64le,linux/arm64/v8,linux/arm/v6,linux/386

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: setup docker buildx
uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
sbom: true
provenance: mode=max
outputs: type=registry
platforms: |
linux/amd64
linux/arm64
linux/arm/v7
linux/s390x
linux/ppc64le
linux/arm64/v8
linux/arm/v6
linux/386
file: Dockerfile
tags: ${{ secrets.DOCKER_USERNAME }}/openroaming-proxy:latest, ghcr.io/${{ secrets.DOCKER_USERNAME }}/openroaming-proxy:latest
github-token: ${{ secrets.PAT_TOKEN }}

0 comments on commit 3cdb2b7

Please sign in to comment.