Skip to content

Commit

Permalink
.github/workflows/pkg-xmandump.yml: use pkg-build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Jul 30, 2023
1 parent 8555f5e commit 52e310b
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions .github/workflows/pkg-xmandump.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
name: xmandump Service Container
on:
workflow_dispatch:
inputs:
version:
description: "Version tag"
required: true
pull_request:
paths:
- services/pkg/xmandump/**
push:
branches:
- master
paths:
- services/pkg/xmandump/**

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/xmandump
push: true
tags: "ghcr.io/void-linux/infra-xmandump:${{ github.event.inputs.version }}"
labels: |
org.opencontainers.image.source=${{ github.repositoryUrl }}
uses: ./.github/workflows/pkg-build.yml
with:
service_name: xmandump
push: ${{ endsWith(github.ref, 'master') }}

0 comments on commit 52e310b

Please sign in to comment.