Merge pull request 'fix: replace $GITHUB_OUTPUT with inline env vars in CI' (#26) from fix/remove-github-output into master
This commit was merged in pull request #26.
This commit is contained in:
@@ -24,25 +24,18 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set image tag
|
||||
id: tag
|
||||
run: |
|
||||
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
||||
SHA=$(echo ${{ gitea.sha }} | cut -c1-7)
|
||||
echo "tag=${TIMESTAMP}-${SHA}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t gitea.leeworks.dev/0xwheatyz/gitea-mobile:${{ steps.tag.outputs.tag }} .
|
||||
docker tag gitea.leeworks.dev/0xwheatyz/gitea-mobile:${{ steps.tag.outputs.tag }} \
|
||||
gitea.leeworks.dev/0xwheatyz/gitea-mobile:latest
|
||||
|
||||
- name: Login to Gitea registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login gitea.leeworks.dev \
|
||||
-u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Push image
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
docker push gitea.leeworks.dev/0xwheatyz/gitea-mobile:${{ steps.tag.outputs.tag }}
|
||||
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
||||
SHA=$(echo ${{ gitea.sha }} | cut -c1-7)
|
||||
TAG="${TIMESTAMP}-${SHA}"
|
||||
docker build -t gitea.leeworks.dev/0xwheatyz/gitea-mobile:${TAG} .
|
||||
docker tag gitea.leeworks.dev/0xwheatyz/gitea-mobile:${TAG} \
|
||||
gitea.leeworks.dev/0xwheatyz/gitea-mobile:latest
|
||||
docker push gitea.leeworks.dev/0xwheatyz/gitea-mobile:${TAG}
|
||||
docker push gitea.leeworks.dev/0xwheatyz/gitea-mobile:latest
|
||||
|
||||
Reference in New Issue
Block a user