Merge pull request #2 from StereotypicalCat/auto-build

Updated from example file to real build file
This commit is contained in:
Lucas Winther authored and GitHub committed 2021-01-15 18:47:25 +01:00
commit 09b933e781
1 file changed
+17 -8
+17 -8
View File
@@ -25,12 +25,21 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.4
- name: Install required components
run: npm install
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
# Runs a single command using the runners shell
- name: use react-scripts to create optimized build
run: npm run build
- name: Build and push Docker images
# uses: docker/build-push-action@4a531fa5a603bab87dfa56578bd82b28508c9547
uses: docker/build-push-action@v2.2.2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: lucasw89/portfolio
tag_with_ref: true