Skip to content

Commit

Permalink
Separated staging and latest Docker image build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AllRWeak committed May 21, 2024
1 parent 8d065ff commit 9a65dfa
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
File renamed without changes.
42 changes: 42 additions & 0 deletions .github/workflows/docker-image-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Catapult staging Docker image builder

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Pulling Catapult repository...
uses: actions/checkout@v4

- name: Preparing image build...
run: make customizations

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

- name: Installing QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Building Catapult image...
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./Dockerfile
push: true
tags: |
ghcr.io/clarifiedsecurity/catapult:staging

0 comments on commit 9a65dfa

Please sign in to comment.