Skip to content

Commit

Permalink
fix: Update docker-buildimage-devdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmlg authored Mar 29, 2024
1 parent ca3b7b6 commit 8035712
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/docker-buildimage-devdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: docker-buildimage-devdocs

on:
schedule:
- cron: '30 3 * * 0'
- cron: '0 6 * * 0'
push:
branches: [ main ]
paths:
Expand All @@ -15,26 +15,45 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWD }}
-
name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
-
name: Set build date
id: build-date
run: |
echo "ym=$(date +%Y-%m)" >> $GITHUB_OUTPUT
echo "date=$(date +%F)" >> $GITHUB_OUTPUT
-
name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: docker/devdocs/
file: docker/devdocs/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
build-args: |
BUILD_MONTH=${{ steps.build-date.outputs.ym }}
BUILD_DATE=${{ steps.build-date.outputs.date }}
tags: |
docker.io/gsmlg/devdocs:${{ steps.build-date.outputs.date }}
ghcr.io/gsmlg/devdocs:${{ steps.build-date.outputs.date }}
docker.io/gsmlg/devdocs:latest
ghcr.io/gsmlg/devdocs:latest

0 comments on commit 8035712

Please sign in to comment.