Merge branch 'main' of https://git.ztfr.eu/Dome/matrix.to-dracula-theme
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: Build and Push Matrix-to Docker Image
|
name: Build and Push Matrix-to Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Manueller Start
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -9,27 +9,26 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Generate timestamp
|
||||||
uses: docker/setup-buildx-action@v1
|
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Generate Timestamp Tag
|
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "sha_short=$(date +%Y%m%d-%H%M)" >> $GITHUB_OUTPUT
|
run: echo "TAG=$(date +%Y%m%d-%H%M)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Login to Docker Hub
|
||||||
uses: docker/build-push-action@v2
|
run: |
|
||||||
with:
|
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login \
|
||||||
context: .
|
-u "${{ secrets.DOCKER_USERNAME }}" \
|
||||||
push: true
|
--password-stdin
|
||||||
tags: |
|
|
||||||
domoel/matrix-to:latest
|
- name: Build image
|
||||||
domoel/matrix-to:${{ steps.vars.outputs.sha_short }}
|
run: |
|
||||||
no-cache: true
|
docker build \
|
||||||
|
-t domoel/matrix-to:latest \
|
||||||
|
-t domoel/matrix-to:${TAG} \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Push image
|
||||||
|
run: |
|
||||||
|
docker push domoel/matrix-to:latest
|
||||||
|
docker push domoel/matrix-to:${TAG}
|
||||||
|
|||||||
Reference in New Issue
Block a user