Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8d598fc29 | ||
|
|
95854ddd05 | ||
| d97dc0d987 |
@@ -10,14 +10,11 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: gitea.sjs.io
|
|
||||||
IMAGE_NAME: rocky-dev
|
IMAGE_NAME: rocky-dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: gitea/runner-images:ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -36,7 +33,7 @@ jobs:
|
|||||||
- name: Log in to registry
|
- name: Log in to registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ vars.REGISTRY }}
|
||||||
username: ${{ vars.USERNAME }}
|
username: ${{ vars.USERNAME }}
|
||||||
password: ${{ secrets.PASS }}
|
password: ${{ secrets.PASS }}
|
||||||
|
|
||||||
@@ -44,7 +41,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ vars.USERNAME }}/${{ env.IMAGE_NAME }}
|
images: ${{ vars.REGISTRY }}/${{ vars.USERNAME }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
# Only tag with version and latest on tag push
|
# Only tag with version and latest on tag push
|
||||||
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user