File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments