gmessages/.forgejo/workflows/package.yaml

33 lines
868 B
YAML
Raw Permalink Normal View History

2024-06-26 00:44:12 +00:00
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
publish_package:
runs-on: docker
steps:
2024-06-26 01:08:36 +00:00
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
2024-06-26 00:44:12 +00:00
with:
2024-06-26 01:08:36 +00:00
platforms: 'amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
2024-06-26 01:13:36 +00:00
with:
endpoint: multiarch
2024-06-26 01:08:36 +00:00
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: git.spgrn.com
username: seang96
2024-06-26 01:15:19 +00:00
password: ${{ secrets.TOKEN }}
2024-06-26 01:08:36 +00:00
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
2024-06-26 00:44:12 +00:00
platforms: linux/amd64
2024-06-26 01:08:36 +00:00
push: true
tags: git.spgrn.com/${{ env.GITHUB_REPOSITORY }}:dev