Compare commits
5 Commits
17780add61
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd878a6224 | ||
|
|
7721000281 | ||
|
|
c76bf79b9d | ||
|
|
aca5aa6751 | ||
|
|
5bfaae66f3 |
@@ -1,4 +1,4 @@
|
||||
name: build-and-pudh
|
||||
name: build-and-push
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ steps.registry.outputs.registry }}
|
||||
@@ -35,6 +35,6 @@ jobs:
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
@@ -1,9 +1,10 @@
|
||||
ARG ALPINE_VERSION=latest
|
||||
FROM alpine:$ALPINE_VERSION AS builder
|
||||
|
||||
ARG RUST_VERSION=stable
|
||||
|
||||
COPY Cargo.lock /usr/src/
|
||||
COPY Cargo.toml /usr/src/
|
||||
COPY src/ /usr/src/src/
|
||||
|
||||
WORKDIR /usr/src
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ pub struct Config {
|
||||
|
||||
pub async fn run(config: Config, token: CancellationToken) -> Result<(), io::Error> {
|
||||
let app = Router::new()
|
||||
.route("/", routing::get(|| async { "Hello world!" }))
|
||||
.route("/", routing::get(|| async { "Hello kube world!" }))
|
||||
.layer((
|
||||
TraceLayer::new_for_http(),
|
||||
TimeoutLayer::new(Duration::from_secs(10)),
|
||||
|
||||
Reference in New Issue
Block a user