feat: add Dockerfile for own workflow build docker image
Some checks failed
Docker / Images (push) Failing after 3m17s
Some checks failed
Docker / Images (push) Failing after 3m17s
This commit is contained in:
28
.github/workflows/docker_images.yaml
vendored
Normal file
28
.github/workflows/docker_images.yaml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Docker
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
images:
|
||||||
|
name: Images
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set docker chmod (temp solution)
|
||||||
|
run: sudo chmod 666 /var/run/docker.sock
|
||||||
|
|
||||||
|
- name: Docker - Login
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: git.hashdot.co
|
||||||
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and Push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./docker/images/build/Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: git.hashdot.co/lars/pipelines/bun:latest
|
||||||
3
docker/images/build/Dockerfile
Normal file
3
docker/images/build/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM oven/bun:alpine
|
||||||
|
|
||||||
|
RUN apk add --no-cache git curl
|
||||||
Reference in New Issue
Block a user