Louis Vallat
8c676f6135
Some checks failed
Build and deploy Rust on Bookworm image / Build and deploy (push) Failing after 26s
Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
37 lines
936 B
YAML
37 lines
936 B
YAML
name: "Build and deploy Rust on Bookworm image"
|
|
defaults:
|
|
run:
|
|
shell: sh
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
# paths:
|
|
# - rust-bookworm/**
|
|
|
|
jobs:
|
|
publish-image:
|
|
name: "Build and deploy"
|
|
runs-on: alpine
|
|
steps:
|
|
- name: Install dependencies
|
|
run: apk add git docker
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Login to Gitea Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.louis-vallat.dev
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: ./rust-bookworm
|
|
file: ./rust-bookworm/Dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
push: true
|
|
tags: |
|
|
git.louis-vallat.dev/${{ github.repository }}:latest
|