mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
create our own psalm container
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
5b49faf3b7
commit
628e55f076
1 changed files with 48 additions and 0 deletions
48
.github/workflows/create-psalm-container.yml
vendored
Normal file
48
.github/workflows/create-psalm-container.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
name: Create Psalm Container
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registry:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
name: Create Psalm Container
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/psalm/psalm-github-actions.git
|
||||||
|
|
||||||
|
- name: Modify the Dockerfile
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
sed -i 's|FROM php:7.4-alpine|FROM php:8.0-alpine|' "psalm-github-actions/Dockerfile"
|
||||||
|
set +x
|
||||||
|
|
||||||
|
- name: Log in to GitHub Docker Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: docker.pkg.github.com
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build container image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
context: 'psalm-github-actions'
|
||||||
|
file: 'psalm-github-actions/Dockerfile'
|
||||||
|
tags: |
|
||||||
|
ghcr.io/nextcloud/all-in-one-psalm:latest
|
||||||
Loading…
Add table
Add a link
Reference in a new issue