Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3bfdf24fff | ||
|
|
0849b8f27d | ||
|
|
5c52e846d9 |
@@ -15,22 +15,24 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-docker
|
||||||
|
container: docker:dind
|
||||||
steps:
|
steps:
|
||||||
|
- name: install nodejs
|
||||||
|
run: apk add --update nodejs npm
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set image tags
|
- name: Set image tags
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
SHORT_SHA="${GITHUB_SHA::7}"
|
SHORT_SHA=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)
|
||||||
BRANCH="${GITHUB_REF_NAME//\//-}"
|
BRANCH=$(printf '%s' "$GITHUB_REF_NAME" | tr '/' '-')
|
||||||
|
|
||||||
echo "short_sha=${SHORT_SHA}" >> "$GITHUB_OUTPUT"
|
echo "short_sha=${SHORT_SHA}" >> "$GITHUB_OUTPUT"
|
||||||
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
|
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user