Skip to content

Commit

Permalink
Merge pull request #20 from nathanielvarona/automation/docker-multi-p…
Browse files Browse the repository at this point in the history
…latform-build-push-release-to-dockerhub

Build and Push Container Image Test
  • Loading branch information
nathanielvarona authored Apr 26, 2024
2 parents 552ff28 + 1e19720 commit daf5000
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4

# YAML files
[*.{yaml,yml}]
indent_style = space
indent_size = 2

# YAML files
[*.{md}]
indent_style = space
indent_size = 2
34 changes: 34 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Push Container Image

on:
release:
types: [released]

jobs:
docker-build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: flask-gunicorn.Dockerfile
target: production
tags: nathanielvarona/pritunl-slack-app
platforms: linux/amd64,linux/arm64
push: true

0 comments on commit daf5000

Please sign in to comment.