Files
gitea-workspaces/.gitea/workflows/release-tag.yml
KoCoder 4742754349
All checks were successful
build-docker-imge / Build the docker container (push) Successful in 5s
print the ls
2024-07-03 23:07:01 +02:00

23 lines
766 B
YAML

name: build-docker-imge
on:
- push
- pull_request
jobs:
build:
name: Build the docker container
runs-on: ubuntu-latest
steps:
- name: "Print env"
run: echo WORKSPACE ${{ GITEA_WORKSPACE }} REPO ${{ GITEA_REPOSITORY }} REF ${{ GITEA_REF }}
- name: "Git clone"
run: git clone ${{ GITEA_REPOSITORY }}
- name: "Git switch"
run: git switch ${{ GITEA_REF }}
- name: "LS"
run: "echo $(ls)"
# - uses: docker/setup-buildx-action@v3
# name: Setup docker buildx
# - run: docker build . -t git.kocoder.xyz/kocoded/gitea-workspaces:${{ var.GITEA_SHA }}
# name: Build the docker container
# - run: docker push git.kocoder.xyz/kocoded/gitea-workspaces:${{ var.GITEA_SHA }}