File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Push Docker Image
2+
3+ on :
4+ push :
5+ branches :
6+ - main # or any branch you deploy from
7+ - fix_issue_GHCR
8+ jobs :
9+ build-and-push :
10+ runs-on : ubuntu-latest
11+
12+ permissions :
13+ contents : read
14+ packages : write # required for GHCR
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+
20+ - name : Log in to GitHub Container Registry
21+ uses : docker/login-action@v3
22+ with :
23+ registry : ghcr.io
24+ username : ${{ github.actor }}
25+ password : ${{ secrets.GITHUB_TOKEN }}
26+
27+ - name : Build Docker image
28+ run : |
29+ docker build -t ghcr.io/${{ github.repository_owner }}/nextflow-app:latest .
30+
31+ - name : Push Docker image
32+ run : |
33+ docker push ghcr.io/${{ github.repository_owner }}/nextflow-app:latest
34+
You can’t perform that action at this time.
0 commit comments