Skip to content

Commit

Permalink
Add docker-images yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrofavarin committed Sep 27, 2024
1 parent 277a2dd commit 8b92d34
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and push Docker image
on:
push:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set release date
run: |
echo "RELEASE_DATE=$(date +%y.%m.%d)" >> ${GITHUB_ENV}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# -
# name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GHCR_TOKEN }}
-
name: Owner names
run: |
GITOWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
echo "GITOWNER=$GITOWNER" >> ${GITHUB_ENV}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8
push: false
tags: |
ghcr.io/${{ env.GITOWNER }}/rclone:latest
ghcr.io/${{ env.GITOWNER }}/rclone:${{ env.RELEASE_DATE }}

0 comments on commit 8b92d34

Please sign in to comment.