Skip to content

Docker Images

Docker Images #1061

Workflow file for this run

name: Docker Images
on:
workflow_dispatch:
push:
branches:
- main
- master
schedule:
- cron: "0 0 * * *"
jobs:
ghcr:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
submodules: true
-
name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master
-
name: Build GHCR images
env:
DOCKER_REPO: ghcr.io/${{ github.actor }}/s3fs
SOURCE_COMMIT: ${{ github.sha }}
run: ./hooks/build
hub:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
submodules: true
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master
-
name: Build Docker Hub images
env:
DOCKER_REPO: docker.io/efrecon/s3fs
SOURCE_COMMIT: ${{ github.sha }}
run: ./hooks/build
-
# Note: This uses the password, not the token as this action would
# otherwise not work.
name: Update repo description at Docker Hub
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: efrecon/s3fs
short-description: Mount S3 buckets from within a container and expose them to host/containers