File tree 2 files changed +14
-2
lines changed 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
paths :
8
+ - " flake.nix"
9
+ - " flake.lock"
8
10
- " dogfood/**"
9
11
- " .github/workflows/dogfood.yaml"
10
12
# Uncomment these lines when testing with CI.
23
25
- name : Checkout
24
26
uses : actions/checkout@v3
25
27
28
+ - name : " Branch name to Docker tag name"
29
+ id : docker-tag-name
30
+ run : |
31
+ tag=${{ steps.branch-name.outputs.current_branch }}
32
+ # Replace / with --, e.g. user/feature => user--feature.
33
+ tag=${tag//\//--}
34
+ echo "tag=${tag}" >> $GITHUB_OUTPUT
35
+
26
36
- uses : cachix/install-nix-action@v22
27
37
with :
28
38
github_access_token : ${{ secrets.GITHUB_TOKEN }}
36
46
username : ${{ secrets.DOCKERHUB_USERNAME }}
37
47
password : ${{ secrets.DOCKERHUB_PASSWORD }}
38
48
39
- - run : docker push codercom/oss-dogfood:testing
49
+ - run : |
50
+ docker tag codercom/oss-dogfood:latest codercom/oss-dogfood:${{ steps.docker-tag-name.outputs.tag }}
51
+ docker push codercom/oss-dogfood -a
40
52
41
53
deploy_template :
42
54
needs : deploy_image
Original file line number Diff line number Diff line change 115
115
# This will import the image into your local Docker daemon.
116
116
devEnvImage = pkgs . dockerTools . streamLayeredImage {
117
117
name = "codercom/oss-dogfood" ;
118
- tag = "testing " ;
118
+ tag = "latest " ;
119
119
fromImage = intermediateDevEnvImage ;
120
120
maxLayers = 64 ;
121
121
contents = [
You can’t perform that action at this time.
0 commit comments