Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit 8406726

Browse files
committed
feat: build and push new image on master commit
1 parent 8e7e041 commit 8406726

File tree

2 files changed

+41
-33
lines changed

2 files changed

+41
-33
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: build-and-push-latest
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v1
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v1
21+
22+
- name: Login to GitHub Container Registry
23+
uses: docker/login-action@v1
24+
with:
25+
registry: ghcr.io
26+
username: vafanassieff
27+
password: ${{ secrets.CR_PAT }}
28+
29+
- name: Login to DockerHub
30+
uses: docker/login-action@v1
31+
with:
32+
username: ${{ secrets.DOCKERHUB_USERNAME }}
33+
password: ${{ secrets.DOCKERHUB_TOKEN }}
34+
35+
- name: Build and push
36+
uses: docker/build-push-action@v2
37+
with:
38+
context: .
39+
platforms: linux/amd64,linux/arm64
40+
push: true
41+
tags: user/app:latest

.github/workflows/build.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,3 @@ jobs:
2929
with:
3030
context: .
3131
platforms: linux/amd64,linux/arm64
32-
33-
- name: Docker meta
34-
id: meta
35-
uses: docker/metadata-action@v3
36-
with:
37-
images: |
38-
ghcr.io/ln-markets/umbrel
39-
lnmarkets/umbrel
40-
tags: |
41-
type=ref,event=branch
42-
type=sha
43-
44-
- name: Login to GitHub Container Registry
45-
uses: docker/login-action@v1
46-
with:
47-
registry: ghcr.io
48-
username: vafanassieff
49-
password: ${{ secrets.CR_PAT }}
50-
51-
- name: Login to DockerHub
52-
uses: docker/login-action@v1
53-
with:
54-
username: ${{ secrets.DOCKERHUB_USERNAME }}
55-
password: ${{ secrets.DOCKERHUB_TOKEN }}
56-
57-
- name: Build and push
58-
uses: docker/build-push-action@v2
59-
with:
60-
context: .
61-
platforms: linux/amd64,linux/arm64
62-
push: true
63-
tags: latest
64-
labels: latest

0 commit comments

Comments
 (0)