Skip to content

Update generate_bin.yml #9

Update generate_bin.yml

Update generate_bin.yml #9

Workflow file for this run

name: Build Binaries
on:
push:
jobs:
build:
name: Build Container
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: roxedus
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
version: latest
driver-opts: image=moby/buildkit:master
- name: Build and push
uses: docker/build-push-action@v5
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:ec8f41d
- 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: "ec8f41d"
artifacts: "bin/pgloader"
token: ${{ secrets.GITHUB_TOKEN }}