mirror of
https://github.com/kazhala/dotbare
synced 2024-11-06 09:20:25 +00:00
35 lines
838 B
YAML
35 lines
838 B
YAML
name: DockerBuild
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: .
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
aws-region: ap-southeast-2
|
|
- name: Run CodeBuild
|
|
uses: aws-actions/aws-codebuild-run-project@v1.0.0
|
|
with:
|
|
project-name: dotbare
|
|
- uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
repository: kazhala/dotbare
|
|
tags: latest
|