Compare commits
11 Commits
language-t
...
updocekr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6b3902db5 | ||
|
|
2772309239 | ||
|
|
6007aa451a | ||
|
|
47337d0061 | ||
|
|
3881012f96 | ||
|
|
85862a0547 | ||
|
|
29f3397d00 | ||
|
|
b6fd15636f | ||
|
|
1d1398281a | ||
|
|
1ed470d492 | ||
|
|
2087b7f446 |
@@ -12,14 +12,12 @@
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
codeql-analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
14
.github/workflows/docker-image.yml
vendored
14
.github/workflows/docker-image.yml
vendored
@@ -20,7 +20,9 @@ jobs:
|
||||
|
||||
- name: "❓ Find the release semantic version"
|
||||
id: semver
|
||||
uses: Steffo99/actions-semver@v0.1.0
|
||||
uses: Steffo99/actions-semver@v0.3.5
|
||||
with:
|
||||
string: ${{ github.event.release.tag_name }}
|
||||
|
||||
- name: "🔨 Setup Buildx"
|
||||
uses: docker/setup-buildx-action@v1
|
||||
@@ -33,12 +35,14 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: "🏗 Build and push the Docker image"
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3.2.0
|
||||
with:
|
||||
tags: >-
|
||||
ghcr.io/steffo99/greed:${{ steps.semver.outputs.full }},
|
||||
ghcr.io/steffo99/greed:${{ steps.semver.outputs.patch }},
|
||||
ghcr.io/steffo99/greed:${{ steps.semver.outputs.minor }},
|
||||
ghcr.io/steffo99/greed:${{ steps.semver.outputs.precedence }},
|
||||
ghcr.io/steffo99/greed:${{ steps.semver.outputs.core }},
|
||||
ghcr.io/steffo99/greed:${{ steps.semver.outputs.pair }},
|
||||
ghcr.io/steffo99/greed:${{ steps.semver.outputs.major }},
|
||||
ghcr.io/steffo99/greed:latest
|
||||
platforms: >-
|
||||
linux/amd64
|
||||
push: true
|
||||
|
||||
52
.github/workflows/release.yml
vendored
Normal file
52
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
name: "Build Docker image"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build-docker:
|
||||
name: "🐳 Build and publish Docker image"
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: "❓ Find the release semantic version"
|
||||
id: semver
|
||||
uses: Steffo99/actions-semver@v0.3.5
|
||||
with:
|
||||
string: ${{ github.ref_name }}
|
||||
|
||||
- name: "🔨 Setup Buildx"
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: "🔑 Login to GitHub Containers"
|
||||
uses: docker/login-action@v1
|
||||
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@v5
|
||||
with:
|
||||
string: ${{ github.repository }}
|
||||
|
||||
- name: "🏗 Build and push the Docker image"
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
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
|
||||
Reference in New Issue
Block a user