Skip to content

Commit

Permalink
Add :dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Mar 14, 2022
1 parent f8afacb commit 2b6e2e9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: dev

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get info
id: determine
run: echo "::set-output name=repo::${GITHUB_REPOSITORY,,}"
- uses: docker/setup-buildx-action@v1
id: buildx
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
build-args: ENVIRONMENT=local
push: true
tags: "${{ steps.determine.outputs.repo }}:dev"
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

0 comments on commit 2b6e2e9

Please sign in to comment.