Use Forgejo-native context variables instead of GitHub
This commit is contained in:
parent
db34470e90
commit
19661abec0
1 changed files with 4 additions and 4 deletions
|
|
@ -15,8 +15,8 @@ jobs:
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.mcintire.me
|
registry: git.mcintire.me
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ gitea.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
@ -25,9 +25,9 @@ jobs:
|
||||||
id: tags
|
id: tags
|
||||||
run: |
|
run: |
|
||||||
TIMESTAMP=$(date +%s)
|
TIMESTAMP=$(date +%s)
|
||||||
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
|
SHORT_SHA=$(echo "${{ gitea.sha }}" | cut -c1-7)
|
||||||
TAG="main-${TIMESTAMP}-${SHORT_SHA}"
|
TAG="main-${TIMESTAMP}-${SHORT_SHA}"
|
||||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
|
||||||
echo "Building image with tag: ${TAG}"
|
echo "Building image with tag: ${TAG}"
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue