Update env.md #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |