Skip to content

Merge pull request #1 from tobz/patch-1 #8

Merge pull request #1 from tobz/patch-1

Merge pull request #1 from tobz/patch-1 #8

Workflow file for this run

name: Build Binaries
on:
push:
jobs:
build:
name: Build Container
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: roxedus
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
version: latest
driver-opts: image=moby/buildkit:master
- name: Build and push
uses: docker/build-push-action@v2
with:
file: ./Dockerfile
load: true
cache-from: ghcr.io/roxedus/pgloader:cache
cache-to: ghcr.io/roxedus/pgloader:cache
tags: |
ghcr.io/roxedus/pgloader
ghcr.io/roxedus/pgloader:999791d
- name: Grab binary
run: |
mkdir bin
docker create --name pgloader ghcr.io/roxedus/pgloader
docker cp pgloader:/usr/local/bin/pgloader bin/pgloader
- name: Push image
run: |
docker push ghcr.io/roxedus/pgloader
- uses: ncipollo/release-action@v1
with:
tag: "999791d"
artifacts: "bin/pgloader"
token: ${{ secrets.GITHUB_TOKEN }}