use new run label
Rust / test (push) Failing after 29s Details
Docker / build-push (push) Failing after 1m24s Details

This commit is contained in:
DataHearth 2023-06-24 17:25:58 +02:00
parent 033928db6e
commit 08c641d72d
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
2 changed files with 11 additions and 12 deletions

View File

@ -4,9 +4,12 @@ on:
push:
tags: ["v*.*.*"]
env:
REGISTRY: gitea.antoine-langlois.net
jobs:
build-push:
runs-on: ubuntu-latest
runs-on: debian-docker
steps:
- uses: actions/checkout@v3
@ -22,7 +25,7 @@ jobs:
- name: Log into registry Gitea
uses: docker/login-action@v2
with:
registry: gitea.antoine-langlois.net
registry: ${{ env.REGISTRY }}
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
@ -31,8 +34,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
datahearth/tech-bot
gitea.antoine-langlois.net/datahearth/tech-bot
${{ github.repository}}
${{ env.REGISTRY }}/${{ github.repository}}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
@ -41,6 +44,7 @@ jobs:
id: build-and-push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -13,15 +13,10 @@ env:
jobs:
test:
runs-on: ubuntu-latest
runs-on: debian-rust
steps:
- uses: actions/checkout@v3
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Checkout
uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose