26 lines
529 B
YAML
26 lines
529 B
YAML
|
name: Build and Push Docker Image
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
build-and-push:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Login to Docker Hub
|
||
|
uses: docker/login-action@v1
|
||
|
with:
|
||
|
username: luki42
|
||
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||
|
|
||
|
- name: Build and push Docker image
|
||
|
run: |
|
||
|
docker build -t luki42/aurcache:latest .
|
||
|
docker push luki42/aurcache:latest
|