Skip to content

Commit

Permalink
fix releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Chadiii committed Jun 18, 2024
1 parent 7d0cc8f commit 2abf98a
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,43 @@ on:
- v*

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
# docker:
# runs-on: ubuntu-latest
# steps:
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Check out the repo
uses: actions/checkout@v2
# - name: Check out the repo
# uses: actions/checkout@v2

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF##*/}
# - name: Set output
# id: vars
# run: echo ::set-output name=tag::${GITHUB_REF##*/}

- name: Print env
run: echo $ABTASTY_CLI_VERSION
# - name: Print env
# run: echo $ABTASTY_CLI_VERSION

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: ./
build-args: |
ABTASTY_CLI_VERSION=${{ github.ref_name }}
push: true
tags: flagshipio/cli:${{ steps.vars.outputs.tag }}
# - name: Build and push
# id: docker_build
# uses: docker/build-push-action@v4
# with:
# context: ./
# build-args: |
# ABTASTY_CLI_VERSION=${{ github.ref_name }}
# push: true
# tags: flagshipio/cli:${{ steps.vars.outputs.tag }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}

release:
name: Release
Expand All @@ -60,7 +60,7 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
ABTASTY_CLI_VERSION: ${{ github.ref_name }}

0 comments on commit 2abf98a

Please sign in to comment.