Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider a7e1bc0c rédigé par Will Hunt's avatar Will Hunt Validation de GitHub
Parcourir les fichiers

Add workflow to build container image (#826)


* Add workflow to build container image

* Create 826.misc

* Support pushing latest

* Use develop

Co-authored-by: default avatarChristian Paul <christianp@matrix.org>
parent b39cc356
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
name: Container Image
on:
push:
branches: [ develop ]
tags: [ 'v*' ]
pull_request:
branches: [ develop ]
env:
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io
jobs:
push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Add workflow for building docker images, and push new docker images to ghcr.io.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter