Skip to content

Commit 75431b7

Browse files
committed
Restore staging build-push workflow
1 parent e6922c1 commit 75431b7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Publish AnvilOps Docker image
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
push_to_registry:
8+
name: Push AnvilOps Docker image to Harbor (Development)
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- name: Check out the repo
14+
uses: actions/checkout@v6
15+
16+
- name: Log in to container registry
17+
run: docker login -u '${{ secrets.DOCKER_USERNAME }}' -p '${{ secrets.DOCKER_PASSWORD }}' registry.anvil.rcac.purdue.edu
18+
19+
- name: Build and push AnvilOps Docker image
20+
run: docker build --push -t registry.anvil.rcac.purdue.edu/anvilops-staging/anvilops:${{ github.run_number }}-${{ github.sha }} .
21+
22+
- name: Log out of container registry
23+
if: always()
24+
run: docker logout registry.anvil.rcac.purdue.edu

0 commit comments

Comments
 (0)