File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and publish docker image
2+
3+ on :
4+ pull_request :
5+ branches : [ "main" ]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ packages : write
13+
14+ steps :
15+ - name : Checkout repository
16+ - uses : actions/checkout@v4
17+
18+ - name : Log in to GHCR
19+ - uses : docker/login-action@v3
20+ with :
21+ registry : ghcr.io
22+ username : ${{ secrets.USER_NAME }} # username
23+ password : ${{ secrets.CR_PAT }} # PAT for CR repository
24+
25+ - name : Build Docker Image
26+ run : docker build . --file Dockerfile --tag ghcr.io/intelligent-testing-lab/autoware-scenario-runner:$(date +%s)
27+
28+ - name : Push Docker Image
29+ run : docker push ghcr.io/intelligent-testing-lab/autoware-scenario-runner:$(date +%s)
You can’t perform that action at this time.
0 commit comments