Skip to content

Add files via upload #142

Add files via upload

Add files via upload #142

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_PLATFORMS: linux/amd64,linux/armhf,linux/arm64
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: setup docker buildx
uses: docker/setup-buildx-action@v1
id: buildx
with:
install: true
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build the Docker image
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && docker buildx build --platform linux/amd64,linux/armhf,linux/arm64 -t simeononsecurity/helium_diy_middleman:latest --progress=plain --push .
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: simeononsecurity/helium_diy_middleman:latest
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: Build the simeononsecurity/helium_diy_middleman:latest Docker image for Github Registry
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/simeononsecurity/helium_diy_middleman:latest --progress=plain --push .