32 lines
759 B
YAML
32 lines
759 B
YAML
name: Build and publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-push-arch:
|
|
runs-on: docker
|
|
container: node:22
|
|
steps:
|
|
- name: Checkout the repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to the registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: guardianproject.dev
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: src/Dockerfile
|
|
push: true
|
|
tags: guardianproject.dev/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest
|