37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: local-build-dev
|
|
|
|
# Intended for local network use.
|
|
# Remote access is possible if the host has a public IP address.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
|
|
REGISTRY_USERNAME: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
|
|
REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
|
|
|
|
jobs:
|
|
local-build-dev:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ env.REGISTRY_USERNAME }}
|
|
password: ${{ env.REGISTRY_PASSWORD }}
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
with:
|
|
config-inline: |
|
|
[registry."${{ env.REGISTRY }}"]
|
|
ca=["/etc/ssl/certs/ca-certificates.crt"]
|
|
- name: Build and Push Docker Image
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64
|
|
tags: ${{ env.REGISTRY }}/chamomind/jws-backend:latest
|
|
push: true
|