2024-02-06 00:31:09 +00:00
|
|
|
|
|
|
|
name: dockerbuild
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
dockerbuild:
|
|
|
|
name: Build docker image
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2024-02-06 01:44:41 +00:00
|
|
|
- name: Install Docker
|
|
|
|
run: curl -fsSL https://get.docker.com | sh
|
2024-02-06 00:31:09 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
2024-02-06 00:44:08 +00:00
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
2024-02-06 01:40:18 +00:00
|
|
|
registry: https://dev.noccylabs.info
|
2024-02-06 00:44:08 +00:00
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2024-02-06 00:31:09 +00:00
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: dev.noccylabs.info/noccylabs/alpine-php83-aio:latest
|
2024-02-06 00:44:08 +00:00
|
|
|
secrets: |
|
|
|
|
GIT
|