All checks were successful
Cargo Build & Test / Push to container registry (push) Successful in 2m45s
38 lines
833 B
YAML
38 lines
833 B
YAML
name: Cargo Build & Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
push:
|
|
name: Push to container registry
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: catthehacker/ubuntu:rust-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: rustup update stable && rustup default stable
|
|
|
|
- run: cargo install sqlx-cli && cargo sqlx prepare --check
|
|
|
|
- name: Login in to the container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.xeovalyte.dev
|
|
username: xeovalyte
|
|
password: ${{ secrets.RUNNER_TOKEN }}
|
|
|
|
- name: Build an publish
|
|
id: push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: gitea.xeovalyte.dev/xeovalyte/workout:latest
|