You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB
YAML

1 year ago
name: Publish Cargo and Docker package
run-name: ${{ github.actor }} is building ${{ github.repository }}
on:
push:
tags:
- 'v**'
jobs:
Publish-Docker:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
1 year ago
uses: https://github.com/actions/checkout@v3
1 year ago
1 year ago
- name: Build site
1 year ago
run: npm install && npm run build
1 year ago
1 year ago
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
registry: git.raptorpond.com
username: henine
password: "${{ secrets.PACKAGE_UPLOAD_TOKEN }}"
1 year ago
- name: Docker meta
1 year ago
id: meta
1 year ago
uses: https://github.com/docker/metadata-action@v4
with:
images: git.raptorpond.com/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
1 year ago
- name: Build and push
uses: https://github.com/docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
1 year ago
tags: ${{ steps.meta.outputs.tags }}