Skip to content

Commit

Permalink
Merge pull request #13 from collabora/wip/refi64/finishing-touches
Browse files Browse the repository at this point in the history
Variety of additional changes
  • Loading branch information
refi64 committed Aug 19, 2023
2 parents 1a510ba + 0fc318a commit 9859158
Show file tree
Hide file tree
Showing 63 changed files with 1,484 additions and 181 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
merge_group:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
test:
name: cargo test
Expand Down Expand Up @@ -35,12 +39,45 @@ jobs:
components: clippy
- run: cargo clippy --all-targets -- -D warnings

docker-image:
name: Docker image build
runs-on: ubuntu-latest
needs:
- test
- fmt
- clippy

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.latest-snapshots
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

allgreen:
if: always()
needs:
- test
- fmt
- clippy
- docker-image
runs-on: Ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
Expand Down
Loading

0 comments on commit 9859158

Please sign in to comment.