Skip to content

Commit

Permalink
Build Docker Image using Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-dej committed Nov 12, 2021
1 parent 79ad0cf commit 76efa92
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,15 @@
name: build-image

on:
push:
branches-ignore:
- master

jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Build the image
uses: docker/build-push-action@v2
with:
push: false
23 changes: 23 additions & 0 deletions .github/workflows/tag-and-push.yml
@@ -0,0 +1,23 @@
name: tag-and-push-image

on:
schedule:
- cron: '30 2 * * *'
push:
branches:
- master
# XXX run on push to branch 'actions' is only temporary for GH Actions testing!
- actions

jobs:
build-tag-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Load image tags
run: 'echo "IMAGE_TAGS=$(cat tags)" >> $GITHUB_ENV'
- name: Build the image
uses: docker/build-push-action@v2
with:
push: false
tags: ${{ env.IMAGE_TAGS }},latest
4 changes: 1 addition & 3 deletions tags
@@ -1,3 +1 @@
1
1.15
1.15.4
1,1.15,1.15.4

0 comments on commit 76efa92

Please sign in to comment.