This repository has been archived on 2026-06-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
docker-almalinux-buildrunner/.gitea/workflows/build.yaml
T
unkinben 530f84bc8c
build-docker-image / push (pull_request) Has been skipped
build-docker-image / clean (pull_request) Failing after 9s
build-docker-image / build (pull_request) Failing after 11s
feat: initial commit
- add Makefile
- add gitea workflows
- add Dockerfile
2024-09-08 00:38:25 +10:00

70 lines
1.4 KiB
YAML

name: build-docker-image
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git
- name: Build Docker Image
run: |
make build
push:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git
- name: Log in to Docker
env:
UPLOAD_USER: ${{ secrets.UPLOAD_USER }}
UPLOAD_PASS: ${{ secrets.UPLOAD_PASS }}
run: |
echo "$UPLOAD_PASS" | docker login --username=$UPLOAD_USER --password-stdin git.query.consul
- name: Push Docker Image
run: |
make push
clean:
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git
- name: Clean Up
run: |
make clean