-
-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (25 loc) · 922 Bytes
/
ghcr_edge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Deploy Docker (edge)
on:
push:
branches:
- main
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Docker image
run: |
docker build . -f Dockerfile.alpine -t smoltable:edge-alpine
docker build . -f Dockerfile.debian -t smoltable:edge-debian
docker tag smoltable:edge-alpine ghcr.io/${{ github.repository }}:edge-alpine
docker tag smoltable:edge-debian ghcr.io/${{ github.repository }}:edge-debian
docker push ghcr.io/${{ github.repository }}:edge-alpine
docker push ghcr.io/${{ github.repository }}:edge-debian