mirror of
https://github.com/fergalmoran/xtreamium.git
synced 2025-12-22 09:41:33 +00:00
Add frontend github action
This commit is contained in:
30
.github/workflows/frontend-docker-image.yml
vendored
Normal file
30
.github/workflows/frontend-docker-image.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ develop ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ develop ]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./frontend
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: docker login
|
||||||
|
env:
|
||||||
|
DOCKER_USER: ${{secrets.DOCKER_USERNAME}}
|
||||||
|
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
|
||||||
|
run: |
|
||||||
|
docker login -u ${{secrets.DOCKER_USERNAME}} -p ${{secrets.DOCKER_PASSWORD}}
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build . --file docker/Dockerfile --tag fergalmoran/xtreamium-frontend
|
||||||
|
- name: Push image to docker hub
|
||||||
|
run: docker push fergalmoran/xtreamium-frontend
|
||||||
Reference in New Issue
Block a user