Skip to content

Commit

Permalink
ci: create docker image on tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jabuxas committed Sep 19, 2024
1 parent 189c0c5 commit 4deed3d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 89 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Push Docker Image Tag

on:
push:
tags:
- "*"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Log in to Docker registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.jabuxas.xyz -u ${{ secrets.DOCKER_USERNAME }} --password-stdin

- name: Build and push Docker image
run: |
docker build -t git.jabuxas.xyz/jabuxas/abyss:${{ github.ref_name }} .
docker push git.jabuxas.xyz/jabuxas/abyss:${{ github.ref_name }}
- name: Log out of Docker registry
run: docker logout git.jabuxas.xyz
89 changes: 0 additions & 89 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 4deed3d

Please sign in to comment.