parent
75edd598b0
commit
af46937984
2 changed files with 8 additions and 3 deletions
8
.github/workflows/build-docker.yml
vendored
8
.github/workflows/build-docker.yml
vendored
|
@ -19,12 +19,14 @@ jobs:
|
|||
container:
|
||||
image: docker:27.4.0-rc.2-dind-alpine3.20
|
||||
steps:
|
||||
- name: Install git
|
||||
run: apk add --no-cache git
|
||||
- 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
|
||||
run: |
|
||||
cd <repo>
|
||||
git checkout <branch-name>
|
||||
cd ${{ github.workspace }}
|
||||
git checkout ${{ github.ref }}
|
||||
- name: Build Docker Container
|
||||
run: |
|
||||
docker build -t ${{ inputs.tag }} ${{ inputs.source }}
|
||||
|
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM alpine
|
||||
|
||||
RUN echo "Hello, World!" > /hello.txt
|
Loading…
Reference in a new issue