Skip to content

Commit

Permalink
add docker github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Sep 6, 2024
1 parent cb5a72a commit 54b5f9a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🚢 Docker

on:
push:
branches:
- main
pull_request:

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docker:
name: 🚢 Docker
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: 🔨 Build image
run: ./docker/build

- name: 🔥 Smoke test
run: ./docker/smoke-test

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

- name: 🚢 Push image
run: ./docker/push

0 comments on commit 54b5f9a

Please sign in to comment.