filebrowser/.github/workflows/main.yaml

44 lines
1.3 KiB
YAML
Raw Normal View History

2023-09-15 20:57:22 +00:00
name: main job
2021-03-04 00:21:05 +00:00
on:
push:
branches:
2024-08-04 14:56:18 +00:00
- "main"
2023-09-25 01:03:09 +00:00
2021-03-04 00:21:05 +00:00
jobs:
push_latest_to_registry:
name: Push latest
runs-on: ubuntu-latest
2021-03-04 00:21:05 +00:00
steps:
- name: Checkout
uses: actions/checkout@v4
2021-03-04 00:21:05 +00:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.0.0
2021-03-04 00:21:05 +00:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.0.0
# Workaround to fix error:
# failed to push: failed to copy: io: read/write on closed pipe
# See https://github.com/docker/build-push-action/issues/761
with:
driver-opts: |
image=moby/buildkit:v0.10.6
- name: Login to Docker Hub
uses: docker/login-action@v3
2021-03-04 00:21:05 +00:00
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
2024-07-30 17:45:27 +00:00
uses: docker/metadata-action@v5
with:
images: gtstef/filebrowser
- name: Build and push
uses: docker/build-push-action@v5
2021-03-04 00:21:05 +00:00
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
file: ./Dockerfile
push: true
tags: 'gtstef/filebrowser:latest'
labels: ${{ steps.meta.outputs.labels }}