-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows/pkg-sftpgo.yml: use pkg-build workflow
- Loading branch information
1 parent
15ea84c
commit 8555f5e
Showing
1 changed file
with
16 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,22 @@ | ||
name: SFTPGo Service Container | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version tag" | ||
required: true | ||
pull_request: | ||
paths: | ||
- services/pkg/sftpgo/** | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- services/pkg/sftpgo/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@master | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to GCHR | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: services/pkg/sftpgo | ||
push: true | ||
tags: "ghcr.io/void-linux/infra-sftpgo:${{ github.event.inputs.version }}" | ||
labels: | | ||
org.opencontainers.image.source=${{ github.repositoryUrl }} | ||
uses: ./.github/workflows/pkg-build.yml | ||
with: | ||
service_name: sftpgo | ||
push: ${{ endsWith(github.ref, 'master') }} |