Skip to content

Commit

Permalink
github actions deployment (#108)
Browse files Browse the repository at this point in the history
* Create docker.yaml

* Update docker.yaml

* Update Dockerfile

* Delete .travis.yml

* Update docker.yaml

* Update docker.yaml
  • Loading branch information
julian9499 authored Dec 3, 2021
1 parent 8be54b8 commit 56bf486
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 19 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docker
on:
push:
schedule:
- cron: '0 17 * * WED'
workflow_dispatch:
jobs:
buildDockerImage:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/areafiftylan/lancie-admin
tags: type=sha, prefix={{date 'YYYYMMDD'}}-
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' }}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8 AS builder
FROM node:12 AS builder
WORKDIR /src
COPY . .
RUN docker/dockerbuild.sh
Expand Down

0 comments on commit 56bf486

Please sign in to comment.