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:
|
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
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM alpine
|
||||||
|
|
||||||
|
RUN echo "Hello, World!" > /hello.txt
|
Loading…
Reference in a new issue