Skip to content

Commit

Permalink
Add GitHub actions
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Nov 4, 2020
1 parent 766a660 commit c274076
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-only.yaml
@@ -0,0 +1,33 @@
name: ci-only

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
- name: Build and push
id: local_build
uses: docker/build-push-action@v2
with:
push: false
platforms: linux/amd64
tags: ghcr.io/alexellis/registry-creds:${{ github.sha }}
- name: Image digest
run: echo ${{ steps.local_build.outputs.digest }}

0 comments on commit c274076

Please sign in to comment.