mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
Remove publish-docker
job
This commit is contained in:
parent
3caf4c38eb
commit
43bbf99d89
1 changed files with 0 additions and 45 deletions
45
.github/workflows/release.yml
vendored
45
.github/workflows/release.yml
vendored
|
@ -87,48 +87,3 @@ jobs:
|
||||||
with:
|
with:
|
||||||
user: "__token__"
|
user: "__token__"
|
||||||
password: ${{ secrets.PYPI_TOKEN }}
|
password: ${{ secrets.PYPI_TOKEN }}
|
||||||
|
|
||||||
publish-docker:
|
|
||||||
name: "🐳 Build and publish Docker image on ghcr.io"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- "tests"
|
|
||||||
- "build-package"
|
|
||||||
steps:
|
|
||||||
- name: "Checkout repository"
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: "❓ Find the release semantic version"
|
|
||||||
id: semver
|
|
||||||
uses: Steffo99/actions-semver@v0.3.4
|
|
||||||
with:
|
|
||||||
string: ${{ github.ref_name }}
|
|
||||||
|
|
||||||
- name: "🔨 Setup Buildx"
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
|
|
||||||
- name: "🔑 Login to GitHub Containers"
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.repository_owner }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: "🔽 Find the lowercase name of the repository"
|
|
||||||
id: reponame
|
|
||||||
uses: ASzc/change-string-case-action@v2
|
|
||||||
with:
|
|
||||||
string: ${{ github.repository }}
|
|
||||||
|
|
||||||
- name: "🏗 Build and push the Docker image"
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
target: "entrypoint"
|
|
||||||
tags: >-
|
|
||||||
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.precedence }},
|
|
||||||
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.core }},
|
|
||||||
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.pair }},
|
|
||||||
ghcr.io/${{ steps.reponame.outputs.lowercase }}:${{ steps.semver.outputs.major }},
|
|
||||||
ghcr.io/${{ steps.reponame.outputs.lowercase }}:latest
|
|
||||||
push: true
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue