pack #1
40
.github/workflows/main.yml
vendored
40
.github/workflows/main.yml
vendored
@@ -1,40 +0,0 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- 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_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
sulthonzh/docker-remote-deployment-action:latest
|
||||
sulthonzh/docker-remote-deployment-action:${{ github.event.release.tag_name }}
|
||||
|
||||
|
||||
|
||||
17
.github/workflows/publish.yml
vendored
Normal file
17
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
call_workflow_publish_docker:
|
||||
uses: infrastructure/reusing_workflows/.github/workflows/publish_docker.yml@main
|
||||
with:
|
||||
artifact-skip: true
|
||||
artifact-name: 'artifact'
|
||||
docker_context: '{{defaultContext}}'
|
||||
dockerfile_path: './Dockerfile'
|
||||
secrets: inherit
|
||||
Reference in New Issue
Block a user