mirror of
https://github.com/cupcakearmy/glyphance.git
synced 2025-09-03 21:20:40 +00:00
docker release job
This commit is contained in:
50
.github/workflows/docker.yaml
vendored
50
.github/workflows/docker.yaml
vendored
@@ -2,46 +2,16 @@ name: Publish Docker image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
name: Build Docker Image
|
||||||
steps:
|
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
|
||||||
- name: Set up QEMU
|
with:
|
||||||
uses: docker/setup-qemu-action@v2
|
name: cupcakearmy/glyphance
|
||||||
- name: Set up Docker Buildx
|
push: true
|
||||||
uses: docker/setup-buildx-action@v2
|
secrets:
|
||||||
with:
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
install: true
|
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Docker Labels
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v4
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
cupcakearmy/glyphance
|
|
||||||
ghcr.io/${{ github.repository }}
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
type=semver,pattern={{major}}
|
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
|
||||||
- name: Log in to the Container registry
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
|
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@@ -11,7 +11,7 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-image:
|
docker:
|
||||||
name: Build Docker Image
|
name: Build Docker Image
|
||||||
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
|
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user