update workflow
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: Build and Push Docker Container
|
name: Build and Push Docker Container
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 11 * * 5"
|
- cron: "0 19 * * 4"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@@ -22,10 +22,23 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image for latest tag
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: daniel156161/borgbackup-ssh:latest
|
tags: daniel156161/borgbackup-ssh:latest
|
||||||
platforms: linux/amd64 # Ersetze dies durch die gewünschten Plattformen
|
platforms: linux/amd64
|
||||||
|
|
||||||
|
# Change to Brache archlinux
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: archlinux
|
||||||
|
|
||||||
|
- name: Build and push Docker image for latest tag
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: daniel156161/borgbackup-ssh:archlinux
|
||||||
|
platforms: linux/amd64
|
||||||
|
|||||||
Reference in New Issue
Block a user