Skip to content

Commit

Permalink
fix: add build-celery-worker github action (#3706)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpcross committed Mar 12, 2024
1 parent cf66dcd commit 8f387a2
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-celery-worker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Celery Worker Docker Image

on:
push:
branches:
- 'main'
paths:
- 'requirements.txt'
- 'docker/celery.Dockerfile'
- 'docker/scripts/celery-init.sh'
- '.github/workflows/build-celery-worker.yml'

workflow_dispatch:

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

steps:
- uses: actions/checkout@v4

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

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

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

- name: Docker Build & Push
uses: docker/build-push-action@v5
with:
context: .
file: docker/celery.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/ietf-tools/mailarchive-celery:latest

0 comments on commit 8f387a2

Please sign in to comment.