build docker image for my registry
Build and Push Docker Container / build-and-push (push) Failing after 13s
Build and Push Docker Container / build-and-push (push) Failing after 13s
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
name: Build and Push Docker Container
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: '${{ secrets.ACTION_ACCESS_TOKEN }}'
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.DOCKER_REGISTRY_URL }}
|
||||
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.ACTION_ACCESS_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image for latest tag
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ vars.DOCKER_REGISTRY_URL }}/daniel156161/protonmail-bridge:latest
|
||||
platforms: linux/amd64
|
||||
Reference in New Issue
Block a user