mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-02-05 07:58:32 -06:00
Update workflow
This commit is contained in:
28
.github/workflows/docker-publish-multiarch-dev.yml
vendored
Normal file
28
.github/workflows/docker-publish-multiarch-dev.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Docker Publish Release Multiarch
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: master
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: install buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
with:
|
||||
version: latest
|
||||
- name: login to docker hub
|
||||
run: echo "${{ secrets.DOCKER_PW }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin
|
||||
- name: build the image
|
||||
run: |
|
||||
docker buildx build --tag f0rc3/gokapi:latest --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
|
||||
- name: push the image
|
||||
run: |
|
||||
docker buildx build --push --tag f0rc3/gokapi:latest-dev --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
|
||||
@@ -1,18 +1,24 @@
|
||||
name: Docker Publish multiarch
|
||||
name: Docker Publish Release Multiarch
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
VERSION_NUMBER: "1.1"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: oprypin/find-latest-tag@v1
|
||||
with:
|
||||
repository: Forceu/Gokapi
|
||||
releases-only: true
|
||||
prefix: 'v'
|
||||
id: latestversion
|
||||
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: install buildx
|
||||
@@ -29,4 +35,4 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
docker buildx build --push --tag f0rc3/gokapi:latest --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
|
||||
docker buildx build --push --tag f0rc3/gokapi:$VERSION_NUMBER --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
|
||||
docker buildx build --push --tag f0rc3/gokapi:${{ steps.latestversion.outputs.tag }} --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
|
||||
19
.github/workflows/test-code.yml
vendored
Normal file
19
.github/workflows/test-code.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Docker Publish Test Compile
|
||||
on: [push, pull_request]
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: install buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
with:
|
||||
version: latest
|
||||
- name: build the image
|
||||
run: |
|
||||
docker buildx build --tag f0rc3/gokapi:test --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 .
|
||||
Reference in New Issue
Block a user