File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ name : " Docker Registry Push"
3+ on :
4+ push :
5+ tags : ['*']
6+
7+ env :
8+ REGISTRY : ghcr.io
9+ IMAGE_NAME : ${{ github.repository }}
10+
11+ jobs :
12+ build-and-push :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ packages : write
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+ - uses : cachix/install-nix-action@v18
21+ with :
22+ extra_nix_config : |
23+ access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
24+ - uses : cachix/cachix-action@v11
25+ with :
26+ name : fleetbot
27+ signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
28+ - name : Log in to the Container registry
29+ uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
30+ with :
31+ registry : ${{ env.REGISTRY }}
32+ username : ${{ github.actor }}
33+ password : ${{ secrets.GITHUB_TOKEN }}
34+ - run : nix build -L .#ex_fleet_yards_docker
35+ - name : " Import and Push image"
36+ run : |
37+ docker load < result
38+ docker tag ExFleetYards:latest ghcr.io/fleetyards/ExFleetYards:latest
39+ docker tag ExFleetYards:latest ghcr.io/fleetyards/ExFleetYards:${{ github.ref_name }}
40+ docker push ghcr.io/fleetyards/ExFleetYards:latest
41+ docker push ghcr.io/fleetyards/ExFleetYards:${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments