feat: add seafile #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: python:3.11.3-alpine3.17 | |
on: | |
push: | |
branches: | |
- master | |
env: | |
CONTEXT: python/3.11.3/alpine3.17 | |
FILE_PATH: python/3.11.3/alpine3.17 | |
REPO_NAME: lvillis/python | |
jobs: | |
job: | |
if: >- | |
contains(github.event.head_commit.message, 'build.python3.11.3-alpine3.17') || | |
contains(github.event.head_commit.message, 'build.python') || | |
contains(github.event.head_commit.message, 'build.all') | |
env: | |
TAG_NAME: 3.11.3-alpine3.17 | |
name: latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.7 | |
- name: Docker Setup Buildx | |
uses: docker/setup-buildx-action@v3.6.1 | |
- name: Docker Login | |
uses: docker/login-action@v3.3.0 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
- name: Build and push Docker images | |
uses: docker/build-push-action@v6.7.0 | |
with: | |
context: ${{ env.CONTEXT }} | |
file: ${{ env.FILE_PATH }}/${{ env.TAG_NAME }}.Dockerfile | |
push: true | |
tags: ${{ env.REPO_NAME }}:${{ env.TAG_NAME }} | |
cache-from: type=registry,ref=${{ env.REPO_NAME }}:${{ env.TAG_NAME }} | |
cache-to: type=inline |