From ef559e96c70739feb74c5a2f107b23ee0d85e678 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 4 Nov 2020 13:27:09 +0000 Subject: [PATCH] Add publish step Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- .github/workflows/publish.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..4b7d737 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,31 @@ +name: publish + +on: + push: + tags: + - '*' + +jobs: + publish: + 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: Local build + id: local_build + uses: docker/build-push-action@v2 + with: + outputs: "type=registry,push=true" + platforms: linux/amd64,linux/arm/v6,linux/arm64 + tags: ghcr.io/alexellis/registry-creds:${{ github.sha }}