Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Feb 5, 2024
1 parent bebd7e3 commit 8507925
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and push image

on:
push:
release:
types: [published]

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226

- name: build image and push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09
with:
context: .
push: true
tags: docker.io/alchemyfr/phraseanet-base:${{ github.ref_name }}

0 comments on commit 8507925

Please sign in to comment.