Skip to content

feature: Add initial ci setup and change sequence for docker build #3

feature: Add initial ci setup and change sequence for docker build

feature: Add initial ci setup and change sequence for docker build #3

name: ci
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
jobs:
build:
name: "build-dev-docker-image"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: linux/arm64,linux/amd64
push: true
tags: ghcr.io/distributive-network/dcp-rest:${{ github.sha }}