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