mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-22 17:11:17 +00:00
Dockerhub gnuxie/draupnir (#2)
Change old matrix.org/mjolnir references in github actions.
This commit is contained in:
1 parent
cccace8ef8
commit
bb125b3828
3 files changed
+13
-10
No files matched your search
@@ -0,0 +1,36 @@
|
||||
# Copied from https://github.com/matrix-org/matrix-bifrost/blob/develop/.github/workflows/docker-hub-latest.yml
|
||||
|
||||
name: "Docker Hub - Develop"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
DOCKER_NAMESPACE: gnuxie
|
||||
PLATFORMS: linux/amd64
|
||||
# Only push if this is main, otherwise we just want to build
|
||||
PUSH: ${{ github.ref == 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
docker-latest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v2
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: ${{ env.PLATFORMS }}
|
||||
push: ${{ env.PUSH }}
|
||||
tags: |
|
||||
${{ env.DOCKER_NAMESPACE }}/draupnir:develop
|
||||
Reference in new issue
Block a user