Skip to content

Commit

Permalink
Github actions для сборки docker образа
Browse files Browse the repository at this point in the history
  • Loading branch information
updevru committed Apr 21, 2024
1 parent 2b5a264 commit fd2c186
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build strapi image

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push from mater
uses: docker/build-push-action@v2
with:
push: true
tags: updev/strapi:latest

0 comments on commit fd2c186

Please sign in to comment.