Skip to content

Merge pull request #32 from CyberSentinels/dependabot/pip/cryptograph… #294

Merge pull request #32 from CyberSentinels/dependabot/pip/cryptograph…

Merge pull request #32 from CyberSentinels/dependabot/pip/cryptograph… #294

Workflow file for this run

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