Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 22eb72c

Browse files
authored
Create github action to build queue-processor (#1478)
1 parent 01b673a commit 22eb72c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/docker-qp.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Deploy Queue Processor"
2+
on:
3+
workflow_dispatch: # Allows workflow to be triggered manually
4+
5+
jobs:
6+
build-and-push-qp:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Get current date
13+
id: date
14+
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H%M')"
15+
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v2
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
22+
- name: Login to GitHub Container Registry
23+
uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Build and push
30+
uses: docker/build-push-action@v3
31+
with:
32+
context: .
33+
file: container/qp_py38.Dockerfile
34+
push: true
35+
tags: |
36+
ghcr.io/autoreduction/autoreduce:latest
37+
ghcr.io/autoreduction/autoreduce:${{ steps.date.outputs.date }}
38+
cache-from: type=registry,ref=ghcr.io/autoreduction/autoreduce:${{ matrix.deployment }}
39+
cache-to: type=inline

0 commit comments

Comments
 (0)