Skip to content

Commit 3d600a8

Browse files
committed
Add push
1 parent 103a81c commit 3d600a8

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
name: Checkout Repository
1919
with:
2020
persist-credentials: false
21+
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9
22+
name: Container Registry Login
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
2127

2228
- uses: cachix/install-nix-action@2126ae7fc54c9df00dd18f7f18754393182c73cd
2329
name: Install Nix
@@ -26,6 +32,5 @@ jobs:
2632
- name: Build and Tag Docker Image
2733
env:
2834
PROJECT: ${{ matrix.project }}
29-
VERSION: ${{ github.ref }}
30-
run: ./${{ matrix.project }}/build
31-
35+
VERSION: latest
36+
run: ./ci/ci

ci/ci

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ TAG="ghcr.io/uw-midsun/devcontainers/${PROJECT}:${VERSION}"
2323
print_green "\nTagging image as ${TAG}.\n"
2424

2525
docker tag $PROJECT:latest $TAG
26+
27+
docker push $TAG $PROJECT:latest

0 commit comments

Comments
 (0)