Changed: Added Gitea Actions
Some checks failed
Docker Build / Build Docker image (push) Failing after 25s
Some checks failed
Docker Build / Build Docker image (push) Failing after 25s
This commit is contained in:
44
.gitea/workflows/docker-build.yml
Normal file
44
.gitea/workflows/docker-build.yml
Normal file
@ -0,0 +1,44 @@
|
||||
name: Docker Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'entrypoint.sh'
|
||||
- '.gitea/workflows/docker-build.yml'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Docker image
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: open the docker socket
|
||||
run: sudo chmod 666 /var/run/docker.sock
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: uzurka
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker buildx build \
|
||||
--file Dockerfile \
|
||||
--tag uzurka/testflight-watcher:latest \
|
||||
--tag uzurka/testflight-watcher:${{ github.sha }} \
|
||||
--platform linux/amd64,linux/arm64, linux/arm/v7 \
|
||||
--push \
|
||||
.
|
Reference in New Issue
Block a user