git checkout
Some checks failed
/ test_build (push) Has been cancelled

This commit is contained in:
Kai Reichart 2024-11-27 13:48:00 +01:00
parent 75edd598b0
commit af46937984
2 changed files with 8 additions and 3 deletions

View file

@ -19,12 +19,14 @@ jobs:
container: container:
image: docker:27.4.0-rc.2-dind-alpine3.20 image: docker:27.4.0-rc.2-dind-alpine3.20
steps: steps:
- name: Install git
run: apk add --no-cache git
- name: Clone Repository - name: Clone Repository
run: git clone https://wf:${{ github.token }}@{{ github.server_url }}/{{ github.repository_owner }}/{{ github.repository }}.git run: git clone https://wf:${{ github.token }}@{{ github.server_url#https:// }}/{{ github.repository_owner }}/{{ github.repository }}.git {{ github.workspace }}
- name: Check Out Branch - name: Check Out Branch
run: | run: |
cd <repo> cd ${{ github.workspace }}
git checkout <branch-name> git checkout ${{ github.ref }}
- name: Build Docker Container - name: Build Docker Container
run: | run: |
docker build -t ${{ inputs.tag }} ${{ inputs.source }} docker build -t ${{ inputs.tag }} ${{ inputs.source }}

3
Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM alpine
RUN echo "Hello, World!" > /hello.txt